Skip to content

saidMounaim/onlineshop-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

onlineshop-api

An API for online store

Features:

  • Authentication
  • Products listing
  • Order placements

Technology Stack:

  • Node js
  • Express Js
  • MongoDB
  • JWT

Default urls:

  • Login User :
    localhost:5000/api/v1/auth/login

  • Register User :
    localhost:5000/api/v1/user/register

  • Get Logged in User :
    localhost:5000/api/v1/auth/me/

  • Update User Details :
    localhost:5000/api/v1/auth/updateprofile

  • Update Password :
    localhost:5000/api/v1/auth/updatepassword

  • Forgot Password :
    localhost:5000/api/v1/auth/forgotpassword

  • Reset Password :
    localhost:5000/api/v1/auth/resetpassword/:resetToken

  • Get All Products :
    localhost:5000/api/v1/products

  • Get Single Product :
    localhost:5000/api/v1/products/:id

  • Create Product :
    localhost:5000/api/v1/products

  • Update Product :
    localhost:5000/api/v1/products/:id

  • Delete Product :
    localhost:5000/api/v1/products/:id

  • Get User Cart :
    localhost:5000/api/v1/cart

  • Add To Cart :
    localhost:5000/api/v1/cart

  • Update User Cart :
    localhost:5000/api/v1/cart/:id

  • Delete Cart :
    localhost:5000/api/v1/cart/:id

  • Get All Users :
    localhost:5000/api/v1/users

  • Get Single User :
    localhost:5000/api/v1/users/:id

  • Create User :
    localhost:5000/api/v1/users

  • Update User :
    localhost:5000/api/v1/users/:id

  • Delete User :
    localhost:5000/api/v1/users/:id

  • Get All Orders :
    localhost:5000/api/v1/orders

  • Add Order :
    localhost:5000/api/v1/orders

  • Update Order :
    localhost:5000/api/v1/orders

  • Delete Order :
    localhost:5000/api/v1/orders/:id

Usage

"/.env" update the values/settings to your own

Install Dependencies

npm install

Run App

# Run in dev mode
npm run server

  • Version: 1.0.0
  • License: MIT
  • Author: Said Mounaim

About

An online shop API built using Node and Express

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published