shot

A simple microservice web framework.

💉 shot

Shot is a microframework designed for fast web development, inspired by Flask and Kemal.

Installation

Add this to your application's shard.yml:

dependencies:
  shot:
    github: SeedyROM/shot

Usage

require "shot"

That's it!

Example

require "shot"

get "/" do |ctx|
  ctx.response.puts("Hello world!")
end

Shot.start  # Default to listening on localhost:5000!

Contributing

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

Contributors

  • SeedyROM Zack Kollar - creator, maintainer
Repository

shot

Owner
Statistic
  • 0
  • 1
  • 0
  • 0
  • 0
  • about 6 years ago
  • May 14, 2018
License

MIT License

Links
Synced at

Fri, 22 Nov 2024 10:42:04 GMT

Languages