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
- Host: GitHub
- URL: https://github.com/vendelieu/blog-backend
- Owner: vendelieu
- License: mit
- Created: 2022-06-22T00:01:04.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-06-12T20:26:30.000Z (almost 2 years ago)
- Last Synced: 2024-06-14T02:35:30.155Z (almost 2 years ago)
- Topics: actix, diesel, postgres, rest, rust
- Language: Rust
- Homepage:
- Size: 59.6 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```