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

https://github.com/muhammadhabibfery/mern-simple-commerce-api

REST API for E-Commerce platform using MERN Stack
https://github.com/muhammadhabibfery/mern-simple-commerce-api

express-ecommerce-api express-ecommerce-project express-marketplace-api express-marketplace-project express-rest-api mern-stack mern-stack-ecommerce mern-stack-marketplace

Last synced: 2 months ago
JSON representation

REST API for E-Commerce platform using MERN Stack

Awesome Lists containing this project

README

        


MERN COMMERCE API


REST API for E-Commerce platform.











| [Requirements][] | [Install][] | [How to setting][] | [API Docs][] | [License][] |

## Requirements

bcryptjs = ^2.x
cookie-parser = ^1.x
cors = ^2.x
dotenv = ^16.x
email-templates = ^11.x
express = ^4.x
express-async-errors = ^3.x
express-fileupload = ^1.x
express-mongo-sanitize = ^2.x
express-rate-limit = ^7.x
helmet = ^7.x
http-status-codes = ^2.x
joi = ^17.x
jsonwebtoken = ^9.x
mongoose = ^8.x
mongoose-unique-validator = ^5.x
nodemailer = ^6.x
pug = ^3.x
rate-limiter = ^0.x
stripe = ^16.x
swagger-ui-express = ^5.x

dev dependecies:
@eslint/js = ^9.x
eslint = ^9.x
globals = ^15.x

## Install

Clone repo

HTTPS:
```
git clone https://github.com/muhammadhabibfery/mern-simple-commerce-api.git
```
SSH:
```
git clone [email protected]:muhammadhabibfery/mern-simple-commerce-api.git
```

Install Nodejs

[Download Node.js](https://nodejs.org/en/download)

Install Nodemon Globally
```
npm install -g nodemon
```

Install Dependencies
```
npm install
```

## How to setting

Create .env file, then setup some configuration with your own credentials
```
NODE_ENV=development
PORT=3000
MONGO_URI=
COOKIE_KEY=
JWT_SECRET_KEY=
STRIPE_PUBLISHABLE_KEY=
STRIPE_SECRET_KEY=
MAIL_HOST=
MAIL_PORT=
MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_FROM_NAME=
MAIL_FROM_ADDRESS=
```

Run the admin seeder

```
npm run seed
```

Run the local server

```
npm run dev
```

## API Docs
Preview


Complete REST API Documentation can be found here

## License

> Copyright (C) 2024 Muhammad Habib Fery.
**[⬆ back to top](#mern-commerce-api)**

[Requirements]:#requirements
[Install]:#install
[How to setting]:#how-to-setting
[API Docs]:#api-docs
[License]:#license