A fully featured web server template written in Rust using Actix-Web
- CSS 56.6%
- Rust 24.5%
- HTML 17.6%
- JavaScript 0.7%
- Shell 0.6%
| .cargo | ||
| .github/workflows | ||
| db | ||
| public | ||
| src | ||
| tests | ||
| .gitignore | ||
| bootstrap-server.sh | ||
| Cargo.lock | ||
| Cargo.toml | ||
| LICENSE | ||
| package.json | ||
| README.md | ||
| tailwind.config.js | ||
| toDo.md | ||
| yarn.lock | ||
Rust Web Server Template
This is a template for a web server written in Rust. It's intended to be a starting point for a web server written in Rust. It's not intended to be a production-ready web server, but it's a good starting point for one.
Features
- Logging
- Configuration
- Static file serving
- Templating
- JSON
- Error handling
- Database
- Sessions
- Authentication
- Tests
Usage
Pre-Requsites
Windows
cargo install -f cargo-binutils
rustup component add llvm-tools-preview
To use this template, first install Rust. Then:
$ git clone
$ cd rust-web-server-template
$ cargo build
To run the server:
$ cargo run
To run the tests:
$ cargo test
License
This project is licensed under AGPLv3 or later. See the LICENSE file for details.