Skip to content

rmcat/bwstreams

Repository files navigation

bwstreams

Overview

bwstreams is a Python 2 Google App Engine app that tracks Brood War streams from AfreecaTV. See it live at https://bwstreams.appspot.com.

Running the development server

  1. Install the Google Cloud SDK
  2. Open Google Cloud SDK Shell
  3. Downgrade gcloud version (later versions are broken!): gcloud components update --version 359.0.0
  4. Run dev_appserver.bat (or run the command dev_appserver.py app.yaml using Python 2)

Useful Google Cloud Commands

  • gcloud app versions list
  • gcloud app versions delete
  • gcloud meta list-files-for-upload
  • gcloud app deploy

Adding streams

Visit http://localhost:8080/admin/initialise_database to initialise a new database from a preset list, .

Use the admin control panel http://localhost:8080/admin.html to add, edit or remove streams.

Triggering an update

The app refreshes stream information every minute. Visit http://localhost:8080/admin/update_database to manually trigger a refresh.

Stream information (JSON)

All the stream information can be found at http://localhost:8080/streams.json.

Summary of links

Description Local Dev Link Hosted Link
Main page http://localhost:8080 https://bwstreams.appspot.com
Stream list (barebones) http://localhost:8080/afreeca_database.json https://bwstreams.appspot.com/afreeca_database.json
Initialise database http://localhost:8080/admin/initialise_database https://bwstreams.appspot.com/admin/initialise_database
Admin control panel http://localhost:8080/admin.html https://bwstreams.appspot.com/admin.html
Trigger update http://localhost:8080/admin/update_database https://bwstreams.appspot.com/admin/update_database
Stream information http://localhost:8080/streams.json https://bwstreams.appspot.com/streams.json
Google Cloud Dashboard https://console.cloud.google.com/home/dashboard?project=bwstreams

About

App Engine web app to track Brood War streams

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published