This is the backend of a mobile app called CashTools. It exists to manage personal money. You can follow the app development on the twitch channel. Check the mobile app repository too. It's written in Rust mainly using Rocket, Juniper, Diesel and Postgres.
Unfortunately, you will need to install libpq-dev and openssl-dev manually to run the project. To do it run:
sudo apt install libpq-dev openssl-devStart a Postgres instance locally and add the database url in a file called .env.local. It should look like this:
DATABASE_URL=...
JWT_SECRET=...
ENV=DEV
API_PORT=8080To run all migrations in your database, run:
make migration-runTo start the API simply run the following command:
make runTo do it you should add a new variable to you .env.local called DB_APPNAME and set the DATABASE_URL correctly. You can get those informations from fly.io dashboard.
After it, run:
make proxyWARNING: If it doesn't work, check if you have fly CLI installed and correctly authenticated.
Now you can just run the project as you expect:
make run