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-backend
andcd
into it. - Run
scripts/tools.sh
to 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_db
to createlaguna_dev_db
local DB with tables. - Run with
scripts/dev.sh
or withcargo run
.
opomba
scripts/dev.sh
watches for changes in source code and if change is detected automatically recompiles and restarts the server.