https://github.com/jak2k/htmx-rust-tera-template
A template for htmx & rust using tera and actix.
https://github.com/jak2k/htmx-rust-tera-template
actix actix-web code-tour codetour htmx htmx-template rust rust-lang rust-template template template-project tera-templates unlicense
Last synced: 6 months ago
JSON representation
A template for htmx & rust using tera and actix.
- Host: GitHub
- URL: https://github.com/jak2k/htmx-rust-tera-template
- Owner: Jak2k
- License: unlicense
- Created: 2024-01-26T20:11:27.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-27T19:36:24.000Z (over 1 year ago)
- Last Synced: 2025-03-23T05:51:07.865Z (7 months ago)
- Topics: actix, actix-web, code-tour, codetour, htmx, htmx-template, rust, rust-lang, rust-template, template, template-project, tera-templates, unlicense
- Language: Rust
- Homepage: https://jak2k.schwanenberg.name/post/htmx-rust-template
- Size: 10.7 KB
- Stars: 13
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# htxm-rust-tera-template
A template for a htmx and rust powered web application using the tera template engine.
## Getting Started
1. Click the "Use this template" button on the github page to create a new repository based on this template.
2. Clone your new repository.### Option A: Do the tour
3. Install the [codetour extension](https://marketplace.visualstudio.com/items?itemName=vsls-contrib.codetour) in vscode.
4. Open the repository in vscode and start the tour by clicking the butto in codetour's notification or by pressing `ctrl+shift+p` and typing `CodeTour: Start Tour`.### Option B: Just run it
3. Run `cargo run` to start the server (or `bacon run` if you have [bacon](https://crates.io/crates/bacon) installed).
4. Open http://localhost:8080 in your browser.## Libraries in this template
- [htmx](https://htmx.org/) - Of course! We don't want to write any javascript.
- [rust](https://www.rust-lang.org/) - Because rust is superiour.
- [actix-web](https://actix.rs/) - A fast web framework for rust.
- [actix-files](https://crates.io/crates/actix-files) - For serving static files.
- [tera](https://keats.github.io/tera/) - A for writing reusable html templates.
- [serde](https://crates.io/crates/serde) - For serializing and deserializing data.
- [color-eyre](https://crates.io/crates/color-eyre) - For better error messages.
- [lazy_static](https://crates.io/crates/lazy_static) - For better static variables.## Contributing
1. Please open an issue first to discuss what you would like to change.
2. Fork the repository and create a new branch.
3. Make your changes and commit them.
4. Open a pull request.
5. Wait for me to review your changes.
6. Celebrate! 🎉