Backend Api of my personal blog using rust + actix
-
Create a database
-
Rename .env.sample to .env and update properties (at least
DATABASE_URL
). -
install libpq lib for postgres
sudo apt-get install libpq-dev
- install diesel-cli through cargo install
cargo install diesel_cli --no-default-features --features postgres
- run migrations:
diesel migration run
- build with release profile:
cargo build --release
- and run binary from console:
target/release/vendelieu-blog