mirror of
https://github.com/LukeMathWalker/zero-to-production.git
synced 2024-12-18 05:56:35 +00:00
Code for "Zero To Production In Rust", a book on API development using Rust.
918af7a6c4
* Add chapter 5 * Basic deployment stuff * Fix Dockerfile. * Add an explicit connection timeout. * Align port with configuration. * Use debug for faster feedback loops. * Add address configuration. * Provision database. * Use structured options. * Add configuration * Fix typo. * Customise deserialization logic. * Change to Require. * Fix spec. * Add a few more things to the dockerignore file. * Update to match chapter. * Add base configuration. * Amend configuratiohn. * Cache the copied files. * Explicitly set the SQLX OFFLINE variable. * Fix Dockerfile. Co-authored-by: LukeMathWalker <rust@lpalmieri.com> |
||
---|---|---|
.github/workflows | ||
chapter03-0 | ||
chapter03-1 | ||
chapter04 | ||
chapter05 | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
README.md |
Zero To Production / Code
Zero To Production In Rust is an opinionated introduction to backend development using Rust.
This repository serves as supplementary material for the book: it hosts snapshots of the codebase of our email newsletter project at end of each chapter.
It is structured as a cargo
workspace: running cargo build
will build the codebase for all chapters.
If you want to build/test/run the code for a specific chapter, just move into its folder! E.g.:
# Run tests for the first part of Chapter 3
cd chapter03-0
cargo test
Alternatively, from the top-level folder, you can specify the binary you are interested into:
# Run the application as it is at end of the first part of Chapter 3
cargo run --bin chapter03-0