planety/prologue
حول
إطار ويب قوي ومرن مكتوب بلغة Nim
تطوير الويب والتطبيقاتما يمكنك فعله
- Configure and Settings
- Param and Query Data
- Powerful Routing System(based on nest)
- Startup and Shutdown Events
النمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- -٢
- خلال 15 يومًا
- -٢
- خلال شهر
- -٢
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلPrologue
What's past is prologue.
Purpose
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
| Documentation | Index Page | |
| Core API | Index Page | Search Page |
| Full API | Index Page | Search Page |
Welcome to write your own experience with Prologue at our wiki. To get familiar with the code structure, use DeepWiki:
Features
Core
- Configure and Settings
- Context
- Param and Query Data
- Form Data
- Static Files
- Middleware
- Powerful Routing System(based on nest)
- 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
Installation
First you should install Nim language which is an elegant and high performance language. Follow the instructions and set environment variables correctly.
Then you can use nimble command to install prologue.
nimble install prologue
Chronos Backend
Prologue can use chronos instead of asyncdispatch via the kairos HTTP server:
requires "prologue[kairos]"
Or without nimble, pass -d:asyncBackend=chronos to the compiler. No code changes needed — your handlers work with both backends.
Usages
Hello World
import prologue
proc hello*(ctx: Context) {.async.} =
resp "<h1>Hello, Prologue!</h1>"
let app = newApp()
app.get("/", hello)
app.run()
Run app.nim ( nim c -r app.nim ). Now the server is running at localhost:8080.
More examples
Extensions
If you need more extensions, you can refer to awesome prologue and awesome nim.
Donations
Thanks for supporting me!
https://github.com/sponsors/planety
Stars
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…