raynode
Raynode
MicroAPIFramework for Crystal Programming Language
Usage
require "raynode"
# Handlers for each route.
def index()
return "MAIN PAGE"
end
def sup()
return "SUP PAGE"
end
# Route Definitions.
ROUTES = {"/" => index,
"/r/sup" => sup}
# Listen and Serve...
Raynode::App.new(ROUTES, 8080)
Installation
-
Add the dependency to your
shard.yml:dependencies: raynode: github: https://github.com/randiaz95/raynode -
Run
shards install
Usage
require "raynode"
# Handlers
# Create all of the functions here.
def index()
return "MAIN PAGE"
end
def sup()
return "SUP PAGE"
end
# put a route to connnect to the function.
ROUTES = {"/" => index, "/r/sup" => sup}
# Listen and serve Raynode.
Raynode::App.new(ROUTES, 8080)
TODOS:
We need everything lol this is just a routing app for now...
Contributing
- Fork it (https://github.com/your-github-user/raynode/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- Randy Diaz - creator and maintainer
Repository
raynode
Owner
Statistic
- 0
- 0
- 1
- 0
- 0
- almost 6 years ago
- December 14, 2019
License
MIT License
Links
Synced at
Sat, 25 Oct 2025 11:11:55 GMT
Languages