The Nim asynchronous web framework

SakiKawasaki 5ade8f8d53 update version. 4 rokov pred
.github 7d3b1990fa fix action ... ? 4 rokov pred
akane 7fd071d747 global update. 4 rokov pred
tests 7fd071d747 global update. 4 rokov pred
.gitignore 7fd071d747 global update. 4 rokov pred
LICENSE 9799391608 Initial commit 5 rokov pred
README.md 420f907d7c update readme.md 4 rokov pred
akane.nimble 5ade8f8d53 update version. 4 rokov pred

README.md

Akane

The Nim asynchronous web framework.

Open Source Love Nim language-plastic License test

Latest version - 0.1.1

Stable version - 0.1.1

Install

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

Features

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

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

    Debug mode

    For enable debug mode, please, compile with -d:debug or --define:debug.

    FAQ

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

    Q: Where can I find the docs?
    A: You can see docs page

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

    Copyright 2020 Ethosa