commit 5a733b864236485ef2296373408cd593a95d5571
parent 11ab1630be46dc22ce7ea003ca6c112bc6d09fe2
Author: vx-clutch <[email protected]>
Date: Sun, 28 Dec 2025 17:07:08 -0500
create default site
Diffstat:
3 files changed, 49 insertions(+), 0 deletions(-)
diff --git a/examples/default/Fes.toml b/examples/default/Fes.toml
@@ -0,0 +1,5 @@
+[app]
+
+name = "default"
+version = "0.0.1"
+authors = ["vx-clutch"]
+\ No newline at end of file
diff --git a/examples/default/README.md b/examples/default/README.md
@@ -0,0 +1,33 @@
+# default
+
+```
+fes new default
+```
+
+> **Know what you are doing?** Delete this file. Have fun!
+
+## Project Structure
+
+Inside your Fes project, you'll see the following directories and files:
+
+```
+.
+├── Fes.toml
+├── README.md
+└── www
+ └── index.lua
+```
+
+Fes looks for `.lua` files in the `www/` directory. Each file is exposed as a route based on its file name.
+
+## Commands
+
+All commands are run from the root of the project, from a terminal:
+
+| Command | Action |
+| :------------------------ | :----------------------------------------------- |
+| `fes run .` | Runs the project at `.` |
+
+## What to learn more?
+
+Check out [Fes's docs](https://docs.vxserver.dev/static/fes.html).
+\ No newline at end of file
diff --git a/examples/default/www/index.lua b/examples/default/www/index.lua
@@ -0,0 +1,8 @@
+local fes = require("fes")
+local site = fes.fes()
+
+-- site.copyright = fes.util.copyright("https://example.com", "vx-clutch")
+
+site:h1("Hello, World!")
+
+return site
+\ No newline at end of file