The problem description is explained in the problem.md
file.
- Docker
- Docker compose
You can follow the official guides for these technologies to be able to install them if you don't have them.
Tutorial Docker
Tutorial Docker Compose
git clone https://github.com/tarv7/space-code-platform
cd space-code-platform
docker-compose up --build -d
docker exec -it space-code-platform_web_1 rails db:create db:migrate db:seed
docker exec -it space-code-platform_web_1 rails dev:cache
docker attach space-code-platform_web_1
for attach the rails serverdocker exec -it space-code-platform_web_1 rails c
for access rails consoledocker exec -it -e "RAILS_ENV=test" space-code-platform_web_1 rspec
to run all automated testsdocker exec -it space-code-platform_web_1 rubocop
to see all warning copsdocker exec -it space-code-platform_web_1 bundle-audit
to see all vulnerabilities in gemsdocker exec -it space-code-platform_web_1 rails rswag:specs:swaggerize
to update documentation
when serving the application, by default it is available at the address: http://localhost:3000/
- GET /api/v1/planets
- GET /api/v1/travel_routes
- POST /api/v1/pilots
- POST /api/v1/contracts
- GET /api/v1/contracts/opened
- PATCH /api/v1/contracts/{id}/accept
- POST /api/v1/travels
- PATCH /api/v1/ships/{id}/fuel
- GET /api/v1/reports
The project is using Swagger to document its API. This way you will be able to access all the details of each endpoint, as well as interact with it. Follow the link to access:
Documentation API