1
0
mirror of https://github.com/actix/examples synced 2025-01-22 14:05:55 +01:00

Add openSUSE instructions for diesel example (#149)

This commit is contained in:
Dany Marcoux 2019-06-28 10:53:08 +02:00 committed by Nikolay Kim
parent 58675a683b
commit ed24f61cca

View File

@ -7,6 +7,7 @@ Diesel's `Getting Started` guide using SQLite for Actix web
### init database sqlite
```bash
# if opensuse: sudo zypper install sqlite3-devel
cargo install diesel_cli --no-default-features --features sqlite
cd examples/diesel
echo "DATABASE_URL=test.db" > .env
@ -18,6 +19,7 @@ diesel migration run
```bash
# if ubuntu : sudo apt-get install libsqlite3-dev
# if fedora : sudo dnf install libsqlite3x-devel
# if opensuse: sudo zypper install libsqlite3-0
cd examples/diesel
cargo run (or ``cargo watch -x run``)
# Started http server: 127.0.0.1:8080
@ -32,6 +34,7 @@ cargo run (or ``cargo watch -x run``)
```bash
# if ubuntu : sudo apt-get install sqlite3
# if fedora : sudo dnf install sqlite3x
# if opensuse: sudo zypper install sqlite3
sqlite3 test.db
sqlite> .tables
sqlite> select * from users;