Skip to content

A API to create, read, update and delete Units, Locations and Assets. A Domain Driven Design API using MongoDB and Express.

Notifications You must be signed in to change notification settings

moraisgabri/units-dashboard-ddd-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Units Dashboard DDD Express Back End

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.

Dependencies

TypeScript        Node        MongoDB        Docker

Configuration

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

Running the project

To start the project, you'll need to run this command: docker compose --env-file .env up

Next Steps

  • Add integration tests
  • Add jwt authentication
  • Add ORM (like prisma or TypeORM)

About

A API to create, read, update and delete Units, Locations and Assets. A Domain Driven Design API using MongoDB and Express.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published