Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/notryanb/rust-blog-demo
Rocket & Diesel Blog
https://github.com/notryanb/rust-blog-demo
Last synced: 11 days ago
JSON representation
Rocket & Diesel Blog
- Host: GitHub
- URL: https://github.com/notryanb/rust-blog-demo
- Owner: notryanb
- License: mit
- Created: 2017-07-12T15:01:15.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-05T17:27:58.000Z (about 6 years ago)
- Last Synced: 2024-08-03T09:12:27.434Z (4 months ago)
- Language: Rust
- Size: 104 KB
- Stars: 14
- Watchers: 5
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 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](https://notryanb.github.io)### Setup
- Must have `diesel_cli` installed. Directions can be found in the [Diesel Getting Started Guide](http://diesel.rs)
- Run `diesel migration run` to run all migrations on the postgres database
- Run `cargo run --bin seed` to seed the database with fake data. See `src/seed.rs` to setup default username/password for a login.
- Run `cargo run --bin main`, which will start the app.### Notes (2018-10-05)
- Rocket `0.3.17` doesn't seem to compile currently, so I reverted to `0.3.11` to get it working. There happens to be a problem on Windows machines due to the [ring dependency and spectre vulnerability](https://github.com/SergioBenitez/Rocket/issues/779)
- I should make a CHANGELOG now that a few people have mentioned using this project as an example....