Skip to content

moliva/splitwizz-service

Repository files navigation

Splitwizz service

Development setup

Make sure to have a local Postgres DB called splitwizz, run the migration scripts:

cargo install sqlx-cli
sqlx migrate run

And run the development environment with the following command:

cargo watch -x run

Production build

Before making the image build, since sqlx will need to run offline during the build phase in the Docker environment, make sure to build the offline data file with:

cargo sqlx prepare

After that just go ahead and build the production image, make sure to bump both versions:

./build-docker.sh

And the migrations image as well:

./build-docker-migrations.sh

After checking that everything is good you can run the same commands now with the publish flag on -p

Generate keys

openssl rand -base64 32

About

Splitwizz backend services 🪄

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published