Skip to content

sportdb web service starter sample - build your own HTTP JSON API using the football.db, worldcup.db, ski.db, formulal1.db, etc.

Notifications You must be signed in to change notification settings

sportdb/sport.db.starter.go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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, worldcup.db, ski.db, formulal1.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. Thanks!

About

sportdb web service starter sample - build your own HTTP JSON API using the football.db, worldcup.db, ski.db, formulal1.db, etc.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages