marciofrayze / rackstep Goto Github PK
View Code? Open in Web Editor NEWA tiny ruby framework for web development.
License: MIT License
A tiny ruby framework for web development.
License: MIT License
class TimeController < RackStep::Controller
def process_request
time_hash = {:time => Time.now}
response.content_type = "text/html"
ErbRendering::render_erb "test"
end
end
Create a new module or template for database connections
Currently the third parameter of the add_route method receives a String containing the name of the router. Change that to use the class directly.
Example:
Now:
add_route('GET', 'myJsonService', 'JsonService')
After:
add_route('GET', 'myJsonService', JsonService)
Instead of "Controller" RackStep should have "Resource". And instead of "process_request" it should have methods like "get", "post", "put" and "delete".
This way, the router is implicit and the developer doesn't have to use the "add_route" method anymore.
When a new request is received, RackStep will parse the URL and call the appropriate class/method. That class must have RackStep::Resource as it's parent.
Example: if a GET request is done to: /user?id=marcio, the get method UserResource class will be executed.
Convention over Configuration <3
Add a way to easily redirect the request to another address
Create a FAQ for RackStep
The use of the current RackStep Basic Http Authentication implementation is a little verbose.
params.inspect
is empty
Right now rackstep does not allow paths stating with "/". It will ignore then. Maybe it's better to allow then, and remove the initial "/" internally.
Update the source code documentation to YARD.
Adapt travis ci workflow configuration to the new version of code climate gem:
https://github.com/codeclimate/ruby-test-reporter/blob/master/README.md
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.