Finish boilerplate stuff
This commit is contained in:
parent
3bb2f3cfba
commit
673a65c336
|
@ -1,2 +1,5 @@
|
||||||
|
# Text editor things
|
||||||
|
*.kate-swp
|
||||||
|
|
||||||
# Binary name built by nimble
|
# Binary name built by nimble
|
||||||
nimblog
|
nimblog
|
||||||
|
|
|
@ -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`
|
||||||
|
|
|
@ -11,3 +11,4 @@ bin = @["nimblog"]
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|
||||||
requires "nim >= 1.6.0"
|
requires "nim >= 1.6.0"
|
||||||
|
requires "prologue >= 0.5.6"
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue