- Notifications
You must be signed in to change notification settings - Fork50
Powerful and flexible web framework written in Nim
License
planety/prologue
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
What's past is prologue.
Prologue
is a powerful and flexible web framework written in Nim.It is ideal for building elegant and high performance web services.
Reduce magic. Reduce surprise.
Documentation | Index Page | |
Core API | Index Page | Search Page |
Full API | Index Page | Search Page |
Welcome to write your own experience with Prologue at ourwiki.
Core
- Configure and Settings
- Context
- Param and Query Data
- Form Data
- Static Files
- Middleware
- Powerful Routing System(based onnest)
- Cookie
- Startup and Shutdown Events
- URL Building
- Error Handler
Plugin
- I18n
- Basic Authentication
- Minimal OpenAPI support
- Websocket support
- Mocking test
- CORS Response
- Data Validation
- Session
- Cache
- Signing
- Command line tools
- Cross-Site Request Forgery
- Clickjacking Protection
First you should installNim language which is an elegant and high performance language. Follow theinstructions and set environment variables correctly.
Then you can usenimble
command to installprologue
.
nimble install prologue
import prologueprochello*(ctx:Context) {.async.}=resp"<h1>Hello, Prologue!</h1>"let app=newApp()app.get("/", hello)app.run()
Runapp.nim (nim c -r app.nim
). Now the server is running atlocalhost:8080
.
If you need more extensions, you can refer toawesome prologue andawesome nim.
Thanks for supporting me!
About
Powerful and flexible web framework written in Nim