]> luflow.net public git repositories - flow-web.git/blob - blog-posts/2026-06-10-10:41-flow-web-a-program-that-will-allow-you-to-generate-static-website.md
Initial commit.
[flow-web.git] / blog-posts / 2026-06-10-10:41-flow-web-a-program-that-will-allow-you-to-generate-static-website.md
1 author: Andreas
2 published: 2026-06-10 10:41:00
3 updated: 2026-06-10 10:41:00
4 topics: flow-web, Static web site, generator, Rust
5 title: flow-web: A program that will allow you to generate static website
6 snippet: flow-web is a program written in Rust that will allow you to generate luflow.net static website.
7
8 ---
9
10 This static website is generated with a program written in [Rust](https://rust-lang.org/)
11 called [flow-web](https://luflow.net/git-repos/flow-web.git).
12 `flow-web` is specifically written to generate this static website.
13
14 ### Installing Rust
15
16 Install `Rust` from your package manager or by downloading from here:
17 [https://rust-lang.org/](https://rust-lang.org/).
18
19 ### Getting the code
20
21 Install `git` from your package manager or by downloading from here:
22 [https://git-scm.com/install](https://git-scm.com/install). The [git repository](https://luflow.net/git-repos/flow-web.git)
23 can also be browsed online.
24
25 Clone the `git` repository:
26
27 ```sh
28 git clone https://luflow.net/git/flow-web.git
29 ```
30
31 ### Compiling the code
32
33 cd into the cloned dir:
34
35 ```sh
36 cd flow-web
37 ```
38
39 Build using release mode:
40
41 ```sh
42 cargo build --release
43 ```
44
45 ### Generating the site
46
47 Generate the site using release mode:
48
49 ```sh
50 cargo run --release
51 ```
52
53 The generated output can be found in '**output**' folder.
54
55 ### Serve locally
56
57 Run the following command to serve locally using **[servez](https://www.npmjs.com/package/servez)** as an example:
58
59 ```sh
60 servez output
61 ```
62
63 Then, visit the following url in a web browser:
64
65 [http://localhost:8080/](http://localhost:8080)
66
67 You can stop the server pressing CTRL+c.
68
69 servez can be installed through [Node.js](https://nodejs.org/en) like so:
70
71 ```sh
72 npm install -g servez
73 ```
74
75 ### License
76
77 [flow-web](https://luflow.net/git-repos/flow-web.git) is licensed under the
78 [GNU AGPL](https://gnu.org/licenses/agpl-3.0.html) license.