Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sportdb/sport.db.starter.go
sportdb web service starter sample - build your own HTTP JSON API using the football.db, worldcup.db, ski.db, formulal1.db, etc.
https://github.com/sportdb/sport.db.starter.go
Last synced: about 4 hours ago
JSON representation
sportdb web service starter sample - build your own HTTP JSON API using the football.db, worldcup.db, ski.db, formulal1.db, etc.
- Host: GitHub
- URL: https://github.com/sportdb/sport.db.starter.go
- Owner: sportdb
- Created: 2014-09-13T16:10:32.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-09-28T12:58:36.000Z (over 10 years ago)
- Last Synced: 2024-11-09T05:31:30.270Z (about 2 months ago)
- Language: Go
- Size: 188 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sport.db.starter - Build Your Own HTTP JSON API (Go Edition)
The sportdb web service starter sample lets you build your own HTTP JSON API
using the
[`football.db`](https://github.com/openfootball),
[`worldcup.db`](https://github.com/openfootball/world-cup),
[`ski.db`](https://github.com/opensport/ski.db),
[`formulal1.db`](https://github.com/opensport/formula1.db), etc.## Getting Started
Step 1: Build yourself a binary using `go`. Type:
$ go build -o server server.go app.go database_structs.go database_finders.go
Step 2: Copy an SQLite database e.g. `football.db` into your folder.
Step 3: Startup the web service (HTTP JSON API). Type:
$ ./server
That's it. Open your web browser and try some services
running on your machine on port 9292 (e.g. `localhost:9292`). Example:List all events:
- `http://localhost:9292/events`
List all English Premier League 2014/15 teams:
- `http://localhost:9292/event/en.2014_15/teams`
And so on. Now change the sources to fit your needs. Be bold. Enjoy.
## License
The `sportdb.db.starter` 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!