This repository has been archived on 2025-04-28. You can view files and clone it, but cannot push or open issues or pull requests.
rust-web/README.md
David Westgate e0597f3239 improve css
2024-06-11 23:26:22 -07:00

24 lines
1.1 KiB
Markdown

###### David Westgate
# Rust Question and Answer Web app
## Background
This is a simple [Rust](https://www.rust-lang.org/) Web [Axum](https://docs.rs/axum/latest/axum/) server, so far serving a handful of [REST](https://en.wikipedia.org/wiki/REST) [API](https://en.wikipedia.org/wiki/API) endpoints as the basis of a "Q&A" or question and answer application. The APIs supported offer basic [CRUD](https://www.codecademy.com/article/what-is-crud) functionality. Specifically, this example mirrors that which is found in the early chapters of the [Rust Web Development textbook by Bastian Gruber](https://rustwebdevelopment.com/) (except using Axum and not Warp). A frontend web server using [Yew](https://crates.io/crates/yew) is also provided to utilize the APIs
### Setup
#### Rustup
First install Rust. I suggest using the [rustup toolchain](https://rustup.rs/)
Then run `cargo install trunk`
Finally, run both the backend and frontend to use the application
### Using the backend crate
See [backend/README.md](./backend/README.md)
### Using the frontend crate
See [frontend/README.md](./frontend/README.md)