A simple ecommerce API
TASK DESCRIPTION
Build a simple ecommerce API with the following features:
- Create, get all and get single product
- Update product
- Delete product
- Simple pagination
- Node Js
- Typescript
- Express
- MongoDB
- Jest
- Postman
API Endpoint: Production
- Authentication and authorization
- CRUD opetaionss and pagination
- Admin users : Authorized to create, update and delete product
Postman: [See documentation]
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
git clone https://https://github.com/Ozodimgba/commerce-store-api.git
cd commerce-store-api
- Create a file named
.env
in the project root directory - Add the environment variables as described in the
dev.env
file
yarn install
yarn dev