novelty.go

Single word (yes/no) site for app engine in go
git clone https://wehaveforgeathome.hates.computer/novelty.go.git
Log | Files | Refs | LICENSE

commit 70f5bc4a2b9a0b5e52375a580feeda5a84d7bd0e
parent 68c843e4b67b4de538a9bf97e24c231961ac1a9f
Author: Ryan Wolf <rwolf@borderstylo.com>
Date:   Tue, 10 Apr 2012 23:27:02 -0700

markdown is harder than programming

Diffstat:
MREADME.md | 27++++++++++++++-------------
1 file changed, 14 insertions(+), 13 deletions(-)

diff --git a/README.md b/README.md @@ -1,17 +1,18 @@ Setup === -# Get your [dev environment](https://developers.google.com/appengine/docs/go/gettingstarted/devenvironment) setup for GAE. It comes with a version of Go, so don't worry about compiling/installing that. -# Clone this repository, cd into the directory. -# $ cp app.yaml.example app.yaml -# Edit app.yaml with the app name you plan to use. +1. Get your [dev environment](https://developers.google.com/appengine/docs/go/gettingstarted/devenvironment) setup for GAE. It comes with a version of Go, so don't worry about compiling/installing that. +2. Clone this repository, cd into the directory. +3. ```cp app.yaml.example app.yaml``` +4. Edit app.yaml with the app name you plan to use. Running locally === -# Start the dev server: $ dev_appserver.py . -# Seed the server with starting data: $ curl whatever:bees@localhost:8080/yes -# Visit localhost:8080 in your browser. +1. Start the dev server: ```$ dev_appserver.py .``` +2. Seed the server with starting data: +```$ curl whatever:bees@localhost:8080/yes``` +3. Visit localhost:8080 in your browser. Your novelty server is ready to go. The answer is current set to "yes", and the password for changing the answer is "bees". @@ -21,9 +22,9 @@ To change the answer to "no", simply visit larry:bees@localhost:8080/no Running on appspot === -# Follow the [registration instuctions](https://developers.google.com/appengine/docs/go/gettingstarted/uploading) for GAE. -# Make sure that the app id in app.yaml matches you new app id. -# Push the app: $ appcfg.py . -# Seed the server with starting data. I'd suggest a different password than -"bees": $ curl http://moe:$PASSWORD@$APPID.appspot.com/yes -# Visit $APPID.appspot.com in your browser to behold your new novelty server. +1. Follow the [registration instuctions](https://developers.google.com/appengine/docs/go/gettingstarted/uploading) for GAE. +2. Make sure that the app id in app.yaml matches you new app id. +3. Push the app: ```$ appcfg.py .``` +4. Seed the server with starting data. I'd suggest a different password than +"bees": ```$ curl http://moe:$PASSWORD@$APPID.appspot.com/yes``` +5. Visit $APPID.appspot.com in your browser to behold your new novelty server.