https://github.com/dchobarkar/ecommerce-mern-api
The backend heart of a MERN stack e-commerce platform, engineered for robust product, user, and order management.
https://github.com/dchobarkar/ecommerce-mern-api
express javascript jwt mongodb mongoose stripe
Last synced: 3 months ago
JSON representation
The backend heart of a MERN stack e-commerce platform, engineered for robust product, user, and order management.
- Host: GitHub
- URL: https://github.com/dchobarkar/ecommerce-mern-api
- Owner: dchobarkar
- Created: 2024-03-09T18:15:15.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-15T12:42:53.000Z (over 2 years ago)
- Last Synced: 2025-03-12T01:33:32.750Z (over 1 year ago)
- Topics: express, javascript, jwt, mongodb, mongoose, stripe
- Language: JavaScript
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ecommerce MERN API
## Description
This repository hosts the backend API for a comprehensive e-commerce application, developed using the MERN stack. It is responsible for handling all server-side logic, including user authentication, product management, order processing, and interactions with the MongoDB database.
## Features
- **RESTful API Endpoints**: Supports operations for users, products, categories, and orders.
- **Authentication and Authorization**: Secures endpoints using JWT, managing both admin and customer roles.
- **Product Management**: Allows for adding, updating, deleting, and fetching products.
- **Order Processing**: Handles customer orders, from placement to completion.
- **Database Interaction**: Utilizes MongoDB for storing and querying data efficiently.
## Technologies Used
- Backend: Node.js with Express
- Database: MongoDB
- Authentication: JWT (JSON Web Tokens)
- Others: Mongoose for MongoDB object modeling
## Installation
To install this project, follow these steps:
$ git clone https://github.com/dchobarkar/ecommerce-mern-api.git
$ cd ecommerce-mern-api
$ npm install
Set up your `.env` files in both the backend and frontend directories to include necessary environment variables such as database URI, JWT secret, etc.
## Usage
To run the application, use the following command:
$ npm run start
Navigate to `http://localhost:3000` in your browser to use the application.
## Contributing
Contributions to this project are welcome. Follow these steps to contribute:
1. Fork the repository
2. Create a new branch (`git checkout -b feature/YourFeature`)
3. Commit your changes (`git commit -m 'Add some feature'`)
4. Push to the branch (`git push origin feature/YourFeature`)
5. Open a pull request
## License
Distributed under the MIT License. See `LICENSE` file for more information.
## Contact
Darshan Chobarkar - [@dchobarkar](https://www.linkedin.com/in/dchobarkar/) - [@barbatos\_\_08](https://twitter.com/barbatos__08) - contact@darshanwebdev.com
Project Link: [https://github.com/dchobarkar/ecommerce-mern-api](https://github.com/dchobarkar/ecommerce-mern-api)