Hi, probably (and most likely) a dumb question but my hello world in jester is
not running any HTTP server.
import asyncdispatch
import jester
routes:
get "/":
resp "Hello world"
runForever()
Run
When I issue nimble build && ./twitter I just see a "Hello world" message in my
command line and the shell immediately returns to me.
u9898287@pop-os:~/proj/twitter$ nimble build
Verifying dependencies for [email protected]
Info: Dependency on jester@>= 0.0.1 already satisfied
Verifying dependencies for [email protected] Info: Dependency on
httpbeast@>= 0.2.2 already satisfied
Verifying dependencies for [email protected]
Info: Dependency on
https://github.com/timotheecour/asynctools@#pr_fix_compilation already satisfied
Verifying dependencies for asynctools@#pr_fix_compilation
Info: Dependency on
https://github.com/timotheecour/asynctools@#pr_fix_compilation already sat
isfied
Verifying dependencies for asynctools@#pr_fix_compilation
Building twitter/twitter using c backend
u9898287@pop-os:~/proj/twitter$ ./twitter
Hello, World!
Run
To double check I tried to open up this link and it seems indeed the server is
not running:
$ curl http://localhost:5000/
curl: (7) Failed to connect to localhost port 5000: Connection refused
Run
What am I missing here?