An open API service indexing awesome lists of open source software.

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.

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)