Setup & First run
namig
This guide uses Linux scripts/*.sh, but scrips for Windows are also available via scripts/*-win.ps1.
- Clone this repo
git clone --recurse-submodules https://github.com/SloveniaEngineering/laguna-backendandcdinto it. - Run
scripts/tools.shto install project tools that simplify development. This can be quite expensive so if you don't need all the tools you can install them manually (seescripts/tools.sh). - Make sure Postgres daemon is running, then do
sqlx database setup --database-url=postgres://postgres:postgres@127.0.0.1/laguna_dev_dbto createlaguna_dev_dblocal DB with tables. - Run with
scripts/dev.shor withcargo run.
opomba
scripts/dev.sh watches for changes in source code and if change is detected automatically recompiles and restarts the server.