bluebits-academy / nodejs-eshop-api-course

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NodeJs: Build The Complete E-Commerce Web API

Introduction

This repository is related to Udemy course of NodeJs: Build The Complete E-Commerce Web API

Join now here

Run

Install

npm install

Start API

npm start

Routes

Products

GET      /api/v1/products
GET      /api/v1/products/:id
POST     /api/v1/products
PUT      /api/v1/products/:id
DELETE   /api/v1/products/:id
PUT gallery-images : /api/v1/products/gallery-images/:id
GET featured products: /api/v1/products/get/featured/:count
GET products count: /api/v1/products/get/count

Orders

GET      /api/v1/orders
GET      /api/v1/orders/:id
POST     /api/v1/orders
PUT      /api/v1/orders/:id
DELETE   /api/v1/orders/:id
GET orders count: /api/v1/orders/get/count

Users

GET      /api/v1/users
GET      /api/v1/users/:id
POST     /api/v1/users
PUT      /api/v1/users/:id
DELETE   /api/v1/users/:id
GET users count: /api/v1/users/get/count

Register new user

POST     /api/v1/users/register

Login user

To login the user and get the auth token you can use:

POST     /api/v1/users/login

Trello Board

Pick up one task from the board and create the pull request to get the review of every line of the code, to be like in a real world experience!

Trello Board Link

About


Languages

Language:JavaScript 100.0%