An open API service indexing awesome lists of open source software.

https://github.com/vendelieu/blog-backend

Simple blog api written on Rust using Actix, Diesel, Postgres
https://github.com/vendelieu/blog-backend

actix diesel postgres rest rust

Last synced: 5 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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
```

4. install diesel-cli through cargo install

```
cargo install diesel_cli --no-default-features --features postgres
```

5. run migrations:

```
diesel migration run
```

6. build with release profile:

```
cargo build --release
```

7. and run binary from console:

```
target/release/vendelieu-blog
```