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
|
||||
nimblog
|
||||
|
|
|
@ -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`
|
||||
|
|
|
@ -11,3 +11,4 @@ bin = @["nimblog"]
|
|||
# Dependencies
|
||||
|
||||
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:
|
||||
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