Skip to content

asifgenius/ecommerce-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ecommerce api with express

Features

  • Create, read, update, delete of user
  • Create, read, update, delete of product
  • Create, read, update, delete of category
  • Create, read, update, delete of subCategory
  • Create, read, update, delete of purchase

Tech

  • Express JS

Installation

Install the dependencies and devDependencies and start the server.

$ npm i

Run the Server Project

$ npm start

Verify the deployment to your server address in your browser

$ 127.0.0.1:5000

Endpoints

POST /api/v1/users 
GET /api/v1/users?offset=2&limit=2
POST /api/v1/categories 
GET /api/v1/categories?offset=2&limit=2
POST /api/v1/subCategories
GET /api/v1/subCategories?offset=2&limit=2
POST /api/v1/products
GET /api/v1/products?offset=2&limit=2
POST /api/v1/purchases
GET /api/v1/purchases?offset=2&limit=2

Status Code

Status Code Description
200 OK
201 CREATE
400 BAD REQUEST
404 NOT FOUND
500 INTERNAL SERVER ERROR

Generator Sceret Key

openssl rand -hex 32

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published