Name: backend-ecom
Version: 1.0.0
This project is a backend application for an e-commerce platform. It provides APIs for user authentication, product management, and order processing, among other features.
- User authentication and authorization using JSON Web Tokens (JWT).
- Secure password storage with bcrypt.js.
- Cross-Origin Resource Sharing (CORS) enabled.
- Environment variable management with dotenv.
- Database interaction using Mongoose with MongoDB.
Backend ecom
├── .git
├── .gitignore
├── app.js
├── package-lock.json
├── package.json
└── src
├── [additional source code files]
-
Clone the repository:
git clone <repository-url>
-
Navigate to the project directory:
cd Backend ecom -
Install dependencies:
npm install
Start the application in development mode:
npm startThe default entry point is app.js. Ensure that all required environment variables are defined in a .env file.
Create a .env file in the root of the project and configure the following variables:
PORT=5000
DB_URI=<your_mongo_db_connection_string>
JWT_SECRET=<your_jwt_secret_key>
The project uses the following dependencies:
- bcryptjs:
^2.4.3- Password hashing - cookie-parser:
^1.4.7- Cookie handling - cors:
^2.8.5- Enable CORS - dotenv:
^16.4.5- Manage environment variables - express:
^4.21.1- Web framework - jsonwebtoken:
^9.0.2- Token-based authentication - mongoose:
^8.8.1- MongoDB object modeling - nodemon:
^3.1.7- Development server
- Fork the repository.
- Create a new branch:
git checkout -b feature/your-feature-name
- Commit your changes:
git commit -m "Add some feature" - Push to the branch:
git push origin feature/your-feature-name
- Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for more details.
Krishchalregmi@gmail.com For any inquiries, please contact the project maintainer.