This project was developed as an example of how to create a simple Typescript backend implementation with these key features in mind:
- RESTful API
- MongoDB Communication
- JWT Authentication
- Swagger documentation setup
- Automated tests with Jest
- Dockerfile for ease of deployment
- Github Actions CI/CD steps
- Locally
This project was developed using Node version ^20.12 To run, simply execute the following commands:
npm install
npm start
- Dockerfile
You can also run via the included Docker image:
docker build -t ecommerce-backend .
docker run -ti -p 3000:3000 ecommerce-backend
This project can be tested with Jest by running the following command:
npm test
The Github Actions pipeline will ensure that each commit will be tested before any release.
When the project is running, access the Swagger Documentation in the /api-docs route.
- Dockerhub publish step in Github Actions