A blazingly fast, minimal web server written in rust
verify rust and cargo are installed
rustc --version
cargo --versionclone, cd, format, and build the project
git clone https://github.com/pauytrh2/web-server
cd web-server
cargo fmt
cargo runor in one line
git clone https://github.com/pauytrh2/web-server && cd web-server && cargo fmt && cargo run- Replace the contents of the site folder with any static site you want to host (must have index.html as the root of the site)
- run (
cargo fmt && cargo run) - visit the address at the port in your web browser (if you set the ADDRESS variable to "172.0.0.1" and the PORT variable to "4242", you would visit: "172.0.0.1:4242")