Coder Social home page Coder Social logo

onlineshop-api's Introduction

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

onlineshop-api's People

Contributors

saidmounaim avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.