docker
: 18.09 or higherdocker-compose
: 1.25.1 or higher
Both of these are for build kit support.
make start
This will start the following
4 containers. (See docker-compose.yml
.)
api
: Rust backend server.db
: MySQL server.osrm
: OSRM server for route generation.swagger
: Swagger UI for the backend api.
The root of the app will be at http://localhost:8080/
.
Run
make test
to run cargo-test on the docker container.
make seed
See api/src/bin/seed.rs
.
After modifying db/schema.sql
, run
make migrate-dry-run
to check the diff, and run
make migrate
to migrate the database running on the db
container.
swagger
container will be up with make start
.
To see the documentation(SwaggerUI),
go to http://localhost:4000/
You can see the documentation on our design principles here (japanese version also available).