/blog-backend

Simple blog api written on Rust using Actix, Diesel, Postgres

Primary LanguageRustMIT LicenseMIT

vendeli.eu-blog backend

Backend Api of my personal blog using rust + actix

Instruction

  1. Create a database

  2. Rename .env.sample to .env and update properties (at least DATABASE_URL).

  3. install libpq lib for postgres

sudo apt-get install libpq-dev
  1. install diesel-cli through cargo install
cargo install diesel_cli --no-default-features --features postgres
  1. run migrations:
diesel migration run
  1. build with release profile:
cargo build --release
  1. and run binary from console:
target/release/vendelieu-blog