Need help with prologue?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

planety
710 Stars 26 Forks Apache License 2.0 889 Commits 14 Opened issues

Description

Prologue is an elegant web framework written in Nim.

Services available

!
?

Need anything else?

Contributors list

Build Status Build Status Build Status

License: Apache-2.0 Version buy me a coffee Discord

Prologue

What's past is prologue.

Purpose

Prologue
is a powerful 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

Features

  • Core

    • [x] Base on
      httpx
      and
      asynchttpserver
    • [x] Configure and Settings
    • [x] Context
    • [x] Param and Query Data
    • [x] Form Data
    • [x] Static Files
    • [x] Middleware
    • [x] Powerful Routing System(based on nest)
    • [x] Cookie
    • [x] Startup and Shutdown Events
    • [x] URL Building
    • [x] Error Handler
  • Plugin

    • [x] I18n
    • [x] Basic Authentication
    • [x] Minimal OpenAPI support
    • [x] Websocket support
    • [x] Mocking test
    • [x] CORS Response
    • [x] Data Validation
    • [x] Session
    • [x] Cache
    • [x] Signing
    • [x] Command line tools
    • [x] Cross-Site Request Forgery
    • [x] 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

Usages

Hello World

import prologue

proc hello*(ctx: Context) {.async.} = resp "

Hello, Prologue!

"

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!

buy me a coffee

patreon

Stars

Stargazers over time

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.