Single word (yes/no) site for app engine in go. Demo: https://isryanattheoffice.com.
Uses basic auth for updating answer, to make it easy to wire up to IFTTT, Tasker, etc.
Uses fancy new (circa 7 years ago) responsive design, to scale based on screen size.
- Get your dev environment set up for GAE.
- Clone this repository, cd into the directory.
cp app.yaml.example app.yaml
- Replace EXAMPLE_PASSWORD with your desired password.
- Start the dev server:
$ dev_appserver.py .
- Visit http://localhost:8080/
Your novelty server is ready to go. The answer is currently set to "no".
To change the answer to "yes", simply visit http://larry:EXAMPLE_PASSWORD@localhost:8080/yes
Running on appspot
- Follow the registration instuctions for GAE.
- Push the app:
$ gcloud app deploy
- Visit http://$APPID.appspot.com/ to behold your new novelty server.
Deploying automatically with Cloud Build (optional)
I use Cloud Build to deploy this app to https://isryanattheoffice.com/ on push to this github repo. I do a little fiddling with sed and substitution variables in order to keep the password out of this repo.
- Follow the getting started guide for Cloud Build.
- Create a build trigger, specifying wherever you keep your copy of this repo.
- Choose "Cloud build configuration" and leave the path the default.
- In "Substitution variables" add _PASSWORD with whatever value you want.
novelty.go is released under the MIT license. See LICENSE for more details.