Rocket & Diesel Blog Demo
- Using rustc 1.31.0-nightly (8c4ad4e9e 2018-10-04)
- postgres backend
- This is a test app for My Blog: lil bits
Setup
- Must have
diesel_cliinstalled. Directions can be found in the Diesel Getting Started Guide - Run
diesel migration runto run all migrations on the postgres database - Run
cargo run --bin seedto seed the database with fake data. Seesrc/seed.rsto setup default username/password for a login. - Run
cargo run --bin main, which will start the app.
Notes (2018-10-05)
- Rocket
0.3.17doesn't seem to compile currently, so I reverted to0.3.11to get it working. There happens to be a problem on Windows machines due to the ring dependency and spectre vulnerability - I should make a CHANGELOG now that a few people have mentioned using this project as an example....