Finish boilerplate stuff

This commit is contained in:
Quad 2022-04-07 19:24:00 +02:00
parent 3bb2f3cfba
commit 673a65c336
4 changed files with 20 additions and 4 deletions

3
.gitignore vendored
View File

@ -1,2 +1,5 @@
# Text editor things
*.kate-swp
# Binary name built by nimble
nimblog

View File

@ -1,3 +1,9 @@
# nimblog
Placeholder text
## How to run
1. Install your distro's `nim` package or equivalent
2. Navigate to the folder where this README is located
3. Fetch dependencies, compile and run: `nimble run`

View File

@ -11,3 +11,4 @@ bin = @["nimblog"]
# Dependencies
requires "nim >= 1.6.0"
requires "prologue >= 0.5.6"

View File

@ -1,5 +1,11 @@
# This is just an example to get you started. A typical binary package
# uses this file as the main entry point of the application.
when isMainModule:
echo("Hello, World!")
import prologue
proc placeholder*(ctx: Context) {.async.} =
resp "Have a nice day"
let blog = newApp()
blog.get("/", placeholder)
blog.run()