Attempts to learn Rust on a real-world example. Plus making a somewhat decent product.
cargo build. duh...
- Setup PosgreSQL database.
- Set following environment variables. You can simply put 'em into
.envfile:
HOST- hostname to bind application to. Use0.0.0.0to make it accessible from everywhere.PORT- network port which application will listen to.DATABASE_URL- URL to a postgres database in fomatpostgresql://<username>:<password>@<host>[:<port>]/<database name>[?schema=<schema name>]TOKEN_SECRET- secret which will be used to sign access tokens
- make sure you have
cargo makeinstalled cargo make dev
docker-compose up. You don't even need to clone repo. Just yoink the docker-compose.yml.
Make sure you have docker, and docker-compose installed. duh.
You would need to populate following env variables. Trick with .env file still works
DB_USER- postgres admin usernameDB_PASSWORD- postgres admin passwordTOKEN_SECRET- secret which will be used to sign access tokensPORT- network port at which application will be running
Happy sailing