Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jendiamond/epoch
test site
https://github.com/jendiamond/epoch
Last synced: 7 days ago
JSON representation
test site
- Host: GitHub
- URL: https://github.com/jendiamond/epoch
- Owner: jendiamond
- Created: 2015-02-23T00:40:28.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2014-04-29T00:12:28.000Z (over 10 years ago)
- Last Synced: 2024-10-09T01:40:47.142Z (about 1 month ago)
- Language: Ruby
- Size: 359 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
epoch
=====test site for epoch
Fetching data and inserting to DB:
1. Create a rails app.
2. Create a Fetch Model with Controllers and Views with a form that takes a url. See example from http://www.githubarchive.org. ( eg. http://data.githubarchive.org/2014-01-01-1.json.gz )
3. With the URL that was input through the form, fetch data for the 'entire day of 2014-01-01' and insert them into a database.Displaying a report:
1. Create another model called Report with controllers and views.
2. Here you will create a form that will take a time range (put this in a partial so it can be reused). Query your database for the 'type' of 'PushEvent' within that time range.
3. Output the results in a bar graph showing only the top ten ['repository']['name'] and the count. (hint some ['repository']['name'] have multiple PushEvents)
4. Create a second page that outputs the results in a datatable showing only the top 25 by ['repository']['name'], ['repository']['url'], and count. Hyperlink the name to the repository url.(Hint: here's a plugin that helps draw datatables - https://datatables.net)
Extra Credit:
1. Give the report a dropdown option for all EventTypes that gets the same report via ajax.
2. Add styling using Twitter Bootstrap.