The Nim asynchronous web framework

SakiKawasaki a0e55d76bb small fix. 5 years ago
akane a0e55d76bb small fix. 5 years ago
tests a0e55d76bb small fix. 5 years ago
.gitignore 5991f1da50 main.exe deleted 5 years ago
LICENSE 7087ab6fb5 Initial commit 5 years ago
README.md a0e55d76bb small fix. 5 years ago
akane.nimble c776102209 small fix. 5 years ago

README.md

Akane

The Nim asynchronous web framework.

Open Source Love Nim language-plastic License

Latest version - 0.0.4

Stable version - ?

Install

  • git: nimble install https://github.com/Ethosa/akane.git

Features

  • Pages with URL handling methods: equals, startswith, endswith, regex,notfound.
  • templates folder.
  • Only the standard library used.
  • Debug mode.
  • Simple usage

    import akane
    
    proc main =  # for gcsafe
      var server = newServer(debug=true)  # launch on http://localhost:5000
    
      server.pages:
        equals("/"):  # when url is "http://...localhost:5000/"
          # type of `request` is a Request.
          await request.answer("Hello, world!")  # utf-8 encoded message.
    
      server.start()
    main()
    

    FAQ

    Q: Where I can learn this?
    A: You can see wiki page

    Q: How I can help to develop this project?
    A: You can put a :star: :3

    Copyright 2020 Ethosa