Code challenge of controlling flights
I'm not sure what to focus on this code challenge, so I choose focus on documentation, database structure and good patterns such as DDD, SOLID and clean architecture.
$ docker-compose up --build
Open the swagger page at http://localhost:3000/api
Before creating/updating flights you have to create some entities
- customers (passengers in the flight)
- staffs (staff members for the plane)
- pilots
- airplanes
- airports
For running locally you have to provide a postgres uri connection in .env and crete a schema called 'flight-manager'
$ npm install
$ npm run start
In the database customers and staffs have a FK for persons. I don't know why it not shows in this diagram. Maybe it's bug on the export image tool