Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sportdb/sport.db.admin
sport.db web app - Open Sports Database Web Admin Tool in Ruby on Rails (version 5.2 and up)
https://github.com/sportdb/sport.db.admin
Last synced: about 2 months ago
JSON representation
sport.db web app - Open Sports Database Web Admin Tool in Ruby on Rails (version 5.2 and up)
- Host: GitHub
- URL: https://github.com/sportdb/sport.db.admin
- Owner: sportdb
- Created: 2012-10-04T20:54:13.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2018-06-28T16:06:42.000Z (over 6 years ago)
- Last Synced: 2024-10-30T12:12:03.240Z (2 months ago)
- Language: Ruby
- Homepage:
- Size: 1.64 MB
- Stars: 17
- Watchers: 4
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sport.db.admin
Open sports database web admin tool in Ruby on Rails 5.2+
## Demo
Try the `sport.db` web admin demo running
on Heroku [`footballdb.herokuapp.com`](http://footballdb.herokuapp.com).## Local Installation / Setup
Step 1 - Install all required gems / libraries
Note: For the local setup let's use SQLite (for production PostgreSQL).
Thus, for the local setup skip install all the PostgreSQL libraries / machinery.```
$ bundle install --without production
```Step 2 - Create the database
```
$ rake db:migrate
```Step 3 - Download and read-in all the database
Note: See the /datafile/world2018.rb for what datasets get included.
```
$ rake db:seed
```That's it. Showtime! Startup the server.
```
$ rails s
```## Heroku Setup / Upgrade Notes
Add a heroku remote:
$ heroku git:remote -a footballdb ## add remote via heroku tool
$ git remote -v ## checkup
heroku https://git.heroku.com/footballdb.git (fetch)
heroku https://git.heroku.com/footballdb.git (push)Update app on heroku
$ git push heroku
Reset db on heroku
$ heroku pg:reset DATABASE_URL --confirm footballdb
Rebuild db on heroku
$ heroku run rake db:migrate
Run db seed on heroku
$ heroku run rake db:seed
Restart.
$ heroku restart
Done.
## License
The `sport.db.admin` scripts are dedicated to the public domain.
Use it as you please with no restrictions whatsoever.## Questions? Comments?
Send them along to the [Open Sports Database & Friends Forum/Mailing List](http://groups.google.com/group/opensport). Thanks!