The BDIT server is a RESTful service built with Node.js, Express, JavaScript, and MongoDB that provides a robust backend for managing products, users, and shopping carts. This API supports user authentication, product management, cart operations, and more.
- User Management: Add registered users data in the DB.
- Product Management: Add, retrieve, and filter products.
- Cart Operations: Add items to the cart, fetch cart contents, and remove items.
- Node.js
- MongoDB
- A
.envfile for environment variables
-
Clone the repository:
git clone https://github.com/Md-Rashedul-Islam-Rajib/bdit-server.git
-
Navigate to the project directory:
cd bdit-server -
Install dependencies:
npm install
-
Create a
.envfile in the root directory of the project and add your environment variables:MONGO_CONNECTION_STRING=your_mongo_uri TOKEN_SECRET=your_secret
-
Start the server:
npm start