flow-web/blog-posts/2026-06-10-10:41-flow-web-a-program-that-will-allow-you-to-generate-static-website.md
Andreas Widen a4a5c7daa5
Initial commit.
Signed-off-by: Andreas Widen <aw@luflow.net>
2026-07-27 17:57:03 +02:00

78 lines
1.8 KiB
Markdown

author: Andreas
published: 2026-06-10 10:41:00
updated: 2026-06-10 10:41:00
topics: flow-web, Static web site, generator, Rust
title: flow-web: A program that will allow you to generate static website
snippet: flow-web is a program written in Rust that will allow you to generate luflow.net static website.
---
This static website is generated with a program written in [Rust](https://rust-lang.org/)
called [flow-web](https://luflow.net/git/hfsoulz/flow-web.git).
`flow-web` is specifically written to generate this static website.
### Installing Rust
Install `Rust` from your package manager or by downloading from here:
[https://rust-lang.org/](https://rust-lang.org/).
### Getting the code
Install `git` from your package manager or by downloading from here:
[https://git-scm.com/install](https://git-scm.com/install). The [git repository](https://luflow.net/git/hfsoulz/flow-web.git)
can also be browsed online.
Clone the `git` repository:
```sh
git clone https://luflow.net/git/hfsoulz/flow-web.git
```
### Compiling the code
cd into the cloned dir:
```sh
cd flow-web
```
Build using release mode:
```sh
cargo build --release
```
### Generating the site
Generate the site using release mode:
```sh
cargo run --release
```
The generated output can be found in '**output**' folder.
### Serve locally
Run the following command to serve locally using **[servez](https://www.npmjs.com/package/servez)** as an example:
```sh
servez output
```
Then, visit the following url in a web browser:
[http://localhost:8080/](http://localhost:8080)
You can stop the server pressing CTRL+c.
servez can be installed through [Node.js](https://nodejs.org/en) like so:
```sh
npm install -g servez
```
### License
[flow-web](https://luflow.net/git/hfsoulz/flow-web.git) is licensed under the
[GNU AGPL](https://gnu.org/licenses/agpl-3.0.html) license.