Welcome to the MegaMart E-commerce Server, a backend API built with Express.js for a seamless e-commerce experience.
- Introduction
- Features
- Prerequisites
- Installation
- Configuration
- Usage
- API Endpoints
- Contributing
- License
MegaMart E-commerce Server is the backend component of the MegaMart E-commerce application. It is responsible for handling authentication, managing products, processing orders, and integrating with third-party services such as Stripe and Cloudinary.
- User authentication with JSON Web Tokens (JWT)
- Secure password hashing using bcrypt
- Cloudinary integration for handling image uploads
- Cross-Origin Resource Sharing (CORS) configuration
- Environment variable management with dotenv
- MongoDB integration with Mongoose
- File uploading with Multer
- Stripe integration for processing payments
Before you begin, ensure you have the following installed:
git clone https://github.com/sksabbirhossain/megamart-ecommerce-server.git
cd megamart-ecommerce-server
yarn install
Or,
npm install
PORT=5000
MONGODB_URL=your MONGODB_URL
JWT_SECTET=your JWT_SECTET
STRIPE_SECRET_KEY=your STRIPE_SECRET_KEY
CLOUDINARY_CLOUD_NAME=your CLOUDINARY_CLOUD_NAME
CLOUDINARY_API_KEY=your CLOUDINARY_API_KEY
CLOUDINARY_API_SECRET=your CLOUDINARY_API_SECRET
Update the values with your configuration details.
yarn run dev
Or,
npm run dev
The server will run at http://localhost:5000 by default.
Refer to the API documentation for detailed information on all endpoint.
If you have any suggestions on what to improve this website, please make a issue share your ideas and create your pull request.
This project is licensed under the MIT License. Feel free to use, modify, and distribute it as per the terms of the license.
Enjoy your seamless e-commerce experience with my MegaMart E-commerce server!. If you have any questions or encounter any issues, please create a issue or contact me.