A API to create, read, update and delete Units, Locations and Assets. A Domain Driven Design API using MongoDB and Express. This project is related to Assets Dashboard Front End from Tractian Front End Engineer Challenge.
Make sure to fill correctly your environment variables
// .env
MONGO_INITDB_ROOT_USERNAME=root
MONGO_INITDB_ROOT_PASSWORD=root
MONGO_INITDB_DATABASE=unit
API_PORT=8001
API_HOST=units-api
DATABASE_HOST=units-database
DATABASE_PORT=27017
DATABASE_COLLECTION=unit
To start the project, you'll need to run this command:
docker compose --env-file .env up
- Add integration tests
- Add jwt authentication
- Add ORM (like prisma or TypeORM)