This repository contains an E-commerce APIs, serving as backend for an E-commerce frontend application, It powers the functionalities for the frontend, such as storing, retrieving, deleting data and much more.
List of endpoints exposed by the service
- to use loggers in program use below functions
logger.error('This is an error message');
logger.warn('This is a warning message');
logger.info('This is an informational message');
logger.debug('This is a debug message');
- Languages:
- TypeScript
- Package manager:
- npm
- Stack to use:
- Node.js
- Express.js
- PostgresSQL
- Testing:
- Jest
- Supertest
- API Documentation
- Swagger Documentation
- Clone this project on your local machine
git clone https://github.com/atlp-rwanda/knights-ecomm-be.git
- Navigate to project directory
cd knights-ecomm-be
- Install dependencies
npm install
- Run the application
npm run dev
- Run tests
npm test
-
Download and install docker
https://www.docker.com/products/docker-desktop/
-
Download Subsystem for Linux for none linux users
-
Set environment varibles like database host to postgresdb
-
Building the image, you must navigate to the project directory in the terminal, then run
docker-compose up --build
-
Stoping docker-compose container, run
docker-compose down