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 # Binary name built by nimble
nimblog nimblog

View File

@ -1,3 +1,9 @@
# nimblog # nimblog
Placeholder text 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 # Dependencies
requires "nim >= 1.6.0" 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: 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()