Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/keen/dashboard-starter-sinatra
Sinatra template app for creating a Keen IO dashboard
https://github.com/keen/dashboard-starter-sinatra
Last synced: 13 days ago
JSON representation
Sinatra template app for creating a Keen IO dashboard
- Host: GitHub
- URL: https://github.com/keen/dashboard-starter-sinatra
- Owner: keen
- License: other
- Archived: true
- Created: 2014-06-22T03:06:20.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-06-22T03:41:38.000Z (over 10 years ago)
- Last Synced: 2024-04-09T21:14:35.697Z (7 months ago)
- Language: JavaScript
- Homepage: http://dashboard-starter-sinatra.herokuapp.com
- Size: 234 KB
- Stars: 13
- Watchers: 39
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dashboard-starter-sinatra
A Sinatra template app for creating a Keen IO dashboard.
### Usage
Clone this repository. Create a `.env` file in this directory that contains your [Keen IO](https://keen.io) project information and API read key:
```
KEEN_PROJECT_ID=aaaaaaaaaaaaaaa
KEEN_READ_KEY=zzzzzzzzzzzzzzz
```Install dependencies:
``` shell
$ bundle install
```Run the app like this:
``` shell
$ foreman run bundle exec rackup
```Add your own queries in [public/javascripts/application.js](public/javascripts/application.js) and corresponding HTML in
[views/index.erb](views/index.erb).### Deploy
This repository includes a Heroku Procfile, so deployment is a snap.
``` shell
$ heroku create
# push up the keys in .env (heroku config plugin is required)
$ heroku config:push
$ git push heroku master
```