Skip to content
프로젝트

소개

Nim으로 작성된 강력하고 유연한 웹 프레임워크

웹 및 앱 개발

이 수치를 측정하는 방법

What you can do

  • Configure and Settings
  • Param and Query Data
  • Powerful Routing System(based on nest)
  • Startup and Shutdown Events

측정된 스타 증가

in 24h
0
in 7 days
-2
in 15 days
-2
in 1 month
-2

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Build Status

License: Apache-2.0 Version buy me a coffee Discord

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: Ask 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

관련 프로젝트 살펴보기

불러오는 중…