Skip to content

A Node.js backend server built with Express.js, designed to handle server-side logic, authentication, and database operations using MongoDB for K-HISTOARTS

Notifications You must be signed in to change notification settings

kamrul2006/Hiso-Arts-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

K-HistoArts-Server.

A Node.js backend server built with Express.js, designed to handle server-side logic, authentication, and database operations using MongoDB.

server: https://historical-artifacts-tracher-server.vercel.app

🗂️ Table of Contents

📘 Introduction

k-histoarts-server is a backend service likely supporting a web or mobile application, handling requests, parsing cookies, managing authentication tokens, and interfacing with a MongoDB database. It's structured around the popular Express.js framework.

⚙️ Installation

  1. Clone the repository

    git clone https://github.com/kamrul2006/k-histoarts-server.git
    cd k-histoarts-server
  2. Install dependencies

    npm install
  3. Create a .env file (see Configuration for details)

🚀 Usage

Start the server:

npm start

This runs node index.js which starts the Express server.

🌟 Features

  • Express-based REST API
  • MongoDB integration
  • Cookie parsing for session management
  • JWT-based authentication
  • Environment variable support using dotenv
  • CORS enabled for cross-origin requests

📦 Dependencies

Install them with:

npm install

🔧 Configuration

Create a .env file in the root directory to store sensitive environment variables. Example:

PORT=3000
MONGO_URI=your_mongodb_connection_string
JWT_SECRET=your_jwt_secret_key

🧪 Troubleshooting

If the server doesn't start:

  • Make sure all required environment variables are defined in .env.
  • Ensure MongoDB is running and accessible via the connection string.
  • Check Node.js and npm versions are compatible.

👥 Contributors

Want to contribute? Feel free to open a pull request!

Thank You 🌹

About

A Node.js backend server built with Express.js, designed to handle server-side logic, authentication, and database operations using MongoDB for K-HISTOARTS

https://historical-artifacts-tracher-server.vercel.app

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published