Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Latest commit

 

History

History
63 lines (47 loc) · 1.76 KB

README.md

File metadata and controls

63 lines (47 loc) · 1.76 KB

Meira

Meira is a web framework written in Nim.

It is a modified version of Mummy, a multi-threaded HTTP 1.1 and WebSocket server by Ryan Oldenburg, and also includes pieces of code from the Jester web framework that have been adapted to work with Mummy.

The word Meira (ミイラ) means "mummy" in Japanese.

This is currently a hobby project under development, and is not production-ready.

Documentation

See docs and examples.

Progress

  • Static file serving
    • Add initial code
    • Add documentation on serving static files from a directory
    • Add tests
    • Add code to display a single static file behind a route
  • Route variables
    • Add initial code
    • Add tests
  • Query (GET) parameter handling
    • Add code on query parameter handling
    • Add docs on how to handle query params
  • POST handling
    • POST application/x-www-form-urlencoded payload handling
    • Document POST application/json payload handling
    • POST multipart/form-data payload handling
    • File upload
  • Cookie management
    • Add middleware code and example for file-based cookie handling
    • Add documentation for file-based cookie handling
  • Middleware
    • Add initial code and example
    • Add documentation
    • Add tests

How to run the tests

Run all tests with Testament:

testament pattern "tests/*.nim"

Run a single test with Testament:

testament pattern "tests/test_websockets.nim"

Contact

If you'd like to discuss anything about the project, feel free to contact me on Twitter or Mastodon.