Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Powerful and flexible web framework written in Nim

License

NotificationsYou must be signed in to change notification settings

planety/prologue

Repository files navigation

Build Status

License: Apache-2.0Versionbuy me a coffeeDiscord

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

DocumentationIndex Page
Core APIIndex PageSearch Page
Full APIIndex PageSearch Page

Welcome to write your own experience with Prologue at ourwiki.

Features

  • 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

Installation

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

Usages

Hello World

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.

More examples

Extensions

If you need more extensions, you can refer toawesome prologue andawesome nim.

Donations

Thanks for supporting me!

https://github.com/sponsors/planety

Stars

Stargazers over time


[8]ページ先頭

©2009-2025 Movatter.jp