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

https://github.com/wisnuuakbr/simple-ecommerce-rest

Simple RestAPI E-commerce using Node Js, Express Js and MongoDB
https://github.com/wisnuuakbr/simple-ecommerce-rest

e-commerce expressjs mongodb node rest-api

Last synced: 3 months ago
JSON representation

Simple RestAPI E-commerce using Node Js, Express Js and MongoDB

Awesome Lists containing this project

README

          

# simple-Ecommerce-restAPI

Simple RestAPI E-commerce using Node Js, Express Js, and MongoDB

## Features

- Signing Up, signing in, and signing out of users
- Authentication using JSON Web Tokens (JWT)
- Option to add, edit, view, and delete all products in the store
- Option to add items or remove items from the cart
- Create a cart for each user, add and remove items from the cart, and also calculate the bill

## Requirements

| Requirement | Version |
| ----------- | ------- |
| Node js | 20.10.0 |
| Express js | ^4.17.1 |
| MongoDB | ^6.x.x |

## Installation

Make sure the requirements above already installed on your system.
Clone the project to your directory and install the dependencies.

```bash
$ git clone https://github.com/wisnuuakbr/simple-ecommerce-rest
$ cd simple-ecommerce-rest
$ npm install
```

## Setup environment variables

```bash
$ cp .env.example .env
```

## Running Server

```bash
$ npm run dev
```