A complete system to manage your intergalatic travels
- AcceptTransportContract
- AddPilot
- AddShip
- ListOpenContract
- PublishContracts
- RefuelShip
- SettleContract
- TravelBetweenPlanets
- Have installed on your machine the Docker: Link and instructions to install an configure Docker for Windows
- Have yarn installed
npm install --global yarn
- Beekeeper, or another database manager (Optional, only if you need to see the data and application reports) Beekeeper
OBS: it is necessary to wait for the previous one to finish executing (All the commands must be runned on application folder)
yarn
docker-compose up
or
npm i
docker-compose up
OBS: (I didn't test if the npm commands takes errors, prefer to use yarn to avoid errors)
If you se this the application is running correctly
After see this run the following command
yarn typeorm migration:run
or
npm run typeorm migration:run
yarn test
With the application running, go to the browser and write http://localhost:3333/docs/
check the swagger docs and make requests
Go to postman and import the file that has on the root called intergalatic_federation_REQUESTS and make requests
Create a ship --> Create a pilot --> Publish a contract --> Accept a contract --> Settle a contract
You can optionally Travel between planets, Refuel ship if you need, and List the open contracts
OBS: You need an database manager this images is from Beekeeper, but the credentials can be used on another database manager On the new connection selection postgres
Add: User: adminUser, password: root,
Default database: intergalatic-federation
Click connect If the migrations:run was succesful the entities must be equal to the next image