solhttp

SolHTTP

A simple shard for a web backend, combining Kemal for serving, Granite for database, plus some additional sugar on top of both.

Includes an authentication cycle (WIP) and a function for session-based messages, also referred to as "flashes".

Written to migrate from Flask, and thus emulates some of its concepts.

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      solhttp:
        gitlab: rymiel/solhttp
    
  2. Run shards install

Usage

require "solhttp"

get "/" do end # Setup routes...

SolHTTP.run # Runs granite and kemal and everything else

Development

While I've written this for personal use to rewrite old Flask server code it's here with an open source and license for use, however, I'm not an expert in secure authentication and the sorts, so please open an issue for obvious vulnerabilities!

Contributing

  1. Fork it (https://gitlab.com/rymiel/solhttp/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

  • rymiel - creator and maintainer
Repository

solhttp

Owner
Statistic
  • 0
  • 0
  • 0
  • 2
  • 2
  • about 1 year ago
  • January 21, 2021
License

GNU General Public License v3.0 or later

Links
Synced at

Fri, 22 Nov 2024 00:18:26 GMT

Languages