Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sportdb/sport.db.web
sportweb gem - instant open sports web admin browser command line tool
https://github.com/sportdb/sport.db.web
Last synced: about 2 months ago
JSON representation
sportweb gem - instant open sports web admin browser command line tool
- Host: GitHub
- URL: https://github.com/sportdb/sport.db.web
- Owner: sportdb
- License: cc0-1.0
- Created: 2014-08-15T22:26:39.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2020-05-17T09:21:47.000Z (over 4 years ago)
- Last Synced: 2024-10-27T22:55:58.760Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 168 KB
- Stars: 4
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
- License: LICENSE.md
Awesome Lists containing this project
README
# sportweb gem - instant open sports web admin browser command line tool
* home :: [github.com/sportdb/sport.db.web](https://github.com/sportdb/sport.db.web)
* bugs :: [github.com/sportdb/sport.db.web/issues](https://github.com/sportdb/sport.db.web/issues)
* gem :: [rubygems.org/gems/sportweb](https://rubygems.org/gems/sportweb)
* rdoc :: [rubydoc.info/gems/sportweb](http://rubydoc.info/gems/sportweb)
* forum :: [groups.google.com/group/opensport](https://groups.google.com/group/opensport)## Usage
#### Step 0: Build yourself a local worldcup database from scratch (zero).
Use the sportdb command line tool machinery to build yourself a local single-file SQLite database
from the (online) datasets from scratch (zero) using the [`worldcup.rb` datafile](https://github.com/openfootball/datafile/blob/master/worldcup.rb). Type in your shell:$ mkdir worldcup
$ cd worldcup
$ sportdb new worldcup # use the worldcup.rb datafile#### Step 1: Start the instant web server.
Type in your shell:
$ sportweb
or
$ sportweb worldcup.db
Note: The web server runs by default on port `3000`.
>> Puma starting in single mode...
>> * Version 3.11.4 (ruby 2.4.4-p296), codename: Love Song
>> * Listening on tcp://0.0.0.0:3000
>> Use Ctrl-C to stop#### Step 2: Open your web browser.
Open your web browser of choice (e.g. [`localhost:3000`](http://localhost:3000))
and start browsing your open sports database
(e.g. `sport.db`, `football.db`, `worldcup.db`, etc.).Example - World Cup 2018 in Russia:
![](i/worldcup2018.png)
That's it.
## Install
Just install the gem:
$ gem install sportweb
## License
The `sportweb` 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 & Friends Forum/Mailing List](http://groups.google.com/group/opensport).
Thanks!