You must have Docker and Docker Compose installed in your system
-
Create a copy of
.env.sample
into a fille name.env
-
Execute
docker-compose -f ./docker-compose.dev.yml up --build
-
Install the
sqlx-cli
using cargo. Follow the crate documentation -
Run database migrations
sqlx migrate run
When done, remember to teardown the Docker system by executing
docker-compose -f ./docker-compose.dev.yml down
-
Install
trunk
following the official documentation. -
Install de Rust target for WASM using
rustup target add wasm32-unknown-unknown
-
cd
into theclient
directory and runtrunk serve
-
Install
cargo watch
, even if its not required is conveninent to have the project built on every file change in the project -
Run
cargo watch -x "run --package server"
-
The website is available at http://0.0.0.0:3000
Deployment is done in Heroku using the emk/heroku-buildpack-rust.