An open API service indexing awesome lists of open source software.

https://github.com/rogerwelin/sinatra-chartkick-example

Sinatra chartkick
https://github.com/rogerwelin/sinatra-chartkick-example

bundler ruby sinatra sinatra-chartkick

Last synced: about 1 month ago
JSON representation

Sinatra chartkick

Awesome Lists containing this project

README

          

# sinatra-chartkick-example

### Synopsis
An example Sinatra app showing how to leverage the chartkick gem to create beautiful charts with one line of code.

### Instructions
1. git clone https://github.com/rogerwelin/sinatra-chartkick-example
2. bundle install --path vendor/bundle
3. bundle exec rackup
4. Head over to localhost:9292

### Further Reading
This is just a minimal example showing how to use chartkick in Sinatra. Typically you would like to pull data from a database, such as mysql, for the chart-data. For this I would advise to use the activerecord and groupdate gems. Further reading:
* Chartkick,
* Activerecord,
* Groupdate,