RealWorld spec and API.Rust / Rocket codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the
This codebase was created to demonstrate a fully fledged fullstack application built with Rocket including CRUD operations, authentication, routing, pagination, and more.
We've gone to great lengths to adhere to the Rocket community styleguides & best practices.
For more information on how to this works with other frontends/backends, head over to the RealWorld repo.
# install rustup curl https://sh.rustup.rs -sSf | sh rustup install nightly rustup default nightly # start postgresql and seed the database psql -f init.sql cargo install diesel_cli --no-default-features --features "postgres" diesel migration run cargo run # from another term or use postman cargo test -- --test-threads=1
How it works
Checkout Rocket's amazing guide
To use random suffixes for articles, compile with
cargo run --feature random_suffix
- Use insert into table (...) select
- Error handling: either