mr-chidex / mainstack-ecommerce-api

ecommerce API

Home Page:https://mainstack-ecommerce-api-production.up.railway.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mainstack eCommerce API

A simple ecommerce API


TASK DESCRIPTION


Build a simple ecommerce API with the following features:

  1. Create, get all and get single product
  2. Update product
  3. Delete product
  4. Simple pagination

Tech Stack

  • Node Js
  • Typescript
  • Express
  • MongoDB
  • Jest
  • Postman

Host Link

API Endpoint: Production

Features

  • Authentication and authorization
  • CRUD opetaionss and pagination
  • Admin users : Authorized to create, update and delete product

Documentation

Postman: See documentation

API Endpoints

Auth

POST /api/v1/auth/register
POST /api/v1/auth/login

Product

POST /api/v1/products
GET /api/v1/products
GET /api/v1/products/:productId
DELETE /api/v1/products/:productId
PATCH /api/v1/products/:productId

Clone this project

git clone https://github.com/mr-chidex/mainstack-ecommerce-api.git
cd mainstack-ecommerce-api

Configure the app

  • Create a file named .env in the project root directory
  • Add the environment variables as described in the dev.env file

Install dependencies

yarn install

Running this project locally

yarn dev

About

ecommerce API

https://mainstack-ecommerce-api-production.up.railway.app/


Languages

Language:TypeScript 99.2%Language:Shell 0.5%Language:JavaScript 0.4%