Basic Code of main.nim
main.nim
import happyx serve("127.0.0.1", 5000): get "/": "Hello, world!"
Compilation
nim c -r -d:debug main
public
Project structure:
project/ ├─ src/ │ ├─ public/ │ │ ├─ hello.png │ ├─ main.nim ├─ README.md
import happyx serve("127.0.0.1", 5000): ... staticDir "public" staticDir "/myPath" -> "public"
There was an error while loading. Please reload this page.