1 unstable release
✓ Uses Rust 2018 edition
|0.0.0||Nov 6, 2018|
2 downloads per month
Used in 1 crate
Parker is a Rust-based templated website framework based on an idea by Joshua Driesman. Its main use is serving server-side rendered HTML along with CSS and JS files.
Parker itself is a library that requires minimal work on top of it.
example folder for an example of usage.
- Clone the repo
- Install docker and docker-compose (Google it)
You don't need to do this if you're just running the server in docker-compose, but it's nice to have for development and allows for using a debugger.
- Install rustup (Google it)
rustup default nightly && rustup update
rustup component add clippy-preview rustfmt-preview
cargo install cargo-watch
You should configure your IDE/editor for Rust development, including rustfmt.
cargo clippy --all-targets --all-features -- -D warnings
Note that this only runs when the project needs to be built.
If you need your fix of GDB so you can feel like a real developer:
- Set up your dev environment (see above)
gdb(if it isn't already installed)
- In one terminal, run Mongo
docker-compose run db
- In another terminal, run the server
cargo watch -w . -w ../lib -x run
ps aux | grep parker/targetto find the PID of the Parker instance
gdb -p $(pgrep -f parker/target)