ki framework
Is a tiny ruby framework built for fast prototyping web applications.
It comes with:
- mongoDB for the database
- a REST API for your models
- WebSockets support for realtime communication
- auto-generating documentation
- auto-generating admin interface
Inspired by Rails and Sinatra, this framework aims to make you write the least amount of code possible. It plays well with mobile, client side frameworks (ex: Angular) and deployment is standard (similar to Rails/Sinatra).
example app
This todo application requires a title and a description, the title is unique and deleting items is not allowed.
The application generates a full-blown RESTful api for each class which extends Ki::Model.
Verb | Url | Required params |
---|---|---|
GET | /todo.json | |
POST | /todo.json | |
PATCH | /todo.json | id |
DELETE | /todo.json | id |
For realtime communication, ki uses WebSockets. Users connect to ki at the /realtime WebSocket endpoint and subscribe to channels. Once subscribed, they will receive all the messages from their channels. Read more about realtime.
tutorial
Here is a tutorial which will take you though ki features.
Example applications built with ki:
- json cloud storage
- rhubarb
- mango - note: no client side encryption yet.