sport.db web app - Open Sports Database Web Admin Tool in Ruby on Rails (version 5.2 and up)
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app/models
attic
bin up bin Jun 28, 2018
config
datafile
db
engine up find assets Oct 12, 2016
lib/tasks
public
.gitignore
Gemfile up gemfile Jun 28, 2018
Gemfile.lock
NOTES.md
README.md
Rakefile
config.ru

README.md

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.

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. Thanks!