The Nim asynchronous web framework

SakiKawasaki 3e4f6530aa Merge branch 'master' of https://github.com/ethosa/akane 4 年 前
akane 4711cdcfc6 working with cookies now available. 5 年 前
tests 4711cdcfc6 working with cookies now available. 5 年 前
.gitignore 53626d9f67 main.exe deleted 5 年 前
LICENSE 9799391608 Initial commit 5 年 前
README.md 4711cdcfc6 working with cookies now available. 5 年 前
akane.nimble 4711cdcfc6 working with cookies now available. 5 年 前

README.md

Akane

The Nim asynchronous web framework.

Open Source Love Nim language-plastic License

Latest version - 0.1.0

Stable version - 0.1.0

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(debug=true)  # 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()
    

    FAQ

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

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

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

    Copyright 2020 Ethosa