The Nim asynchronous web framework
Ethosa 7766be8b1d Update README.md | 1 year ago | |
---|---|---|
.github | 3 years ago | |
akane | 3 years ago | |
tests | 3 years ago | |
.gitignore | 4 years ago | |
LICENSE | 3 years ago | |
README.md | 1 year ago | |
akane.nimble | 3 years ago |
Actual version - HappyX
nimble install https://github.com/Ethosa/akane.git
nimble install akane
equals
, startswith
, endswith
, regex
,notfound
;templates
folder;Simple usage:
import akane
proc main = # for gcsafe
var server = newServer() # by default launches on http://localhost:5000
server.pages:
equals("/"): # when url is "http://...localhost:5000/"
# You also can write "/" instead of equals("/")
# type of `request` is a Request.
await request.answer("Hello, world!") # utf-8 encoded message.
equals("/getme", HttpGet):
await request.answer("You can see it only on GET method! :)")
server.start()
main()
For enable debug mode, please, compile with -d:debug
or --define:debug
.
For enable other tools like password checking, please, compile with -d:tools
or --define:tools
.
Q: Where can I learn this?
A: You can see wiki page
Q: Where can I find the docs?
A: You can see docs page
Q: How can I help to develop this project?
A: You can put a :star: :3