gcloud-golang-todos

module
v0.0.0-...-be1536b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2016 License: Apache-2.0

README

This project is no longer actively developed or maintained.

gcloud-golang-todos

TodoMVC backend using gcloud-golang.

Prerequisites

  1. Set up a Go installation and workspace.

  2. Install the Cloud SDK. If necessary, running the following will install the Developer Preview commands and the App Engine SDK for Go.

    gcloud components update preview gae-go
    
  3. Create a new cloud project on console.developers.google.com.

  4. Export your project id:

    gcloud config set project <project id>
    
  5. Clone the repository by running the following command:

    go get -u github.com/GoogleCloudPlatform/gcloud-golang-todos
    
  6. Initialize the todomvc submodule. Since TodoMVC is linked within this repository as a git submodule, we need to fetch its codebase separately:

    cd $GOPATH/src/github.com/GoogleCloudPlatform/gcloud-golang-todos
    git submodule update --init
    

Running

Locally via Managed VMs & Docker
# Check that Docker is running.
boot2docker up
$(boot2docker shellinit)

# Download the Docker runtime images for Managed VMs; make sure to select the Go runtime.
gcloud preview app setup-managed-vms

# Run the app.
gcloud preview app run main

# Open http://localhost:8080/examples/angularjs/index.html in the browser!

Todo

  • Determine a reasonable testing strategy. Either wait for an aetest port, or develop something more involved.

Contributing changes

Licensing

Directories

Path Synopsis
+build appenginevm This package implements a simple HTTP server providing a REST API to a todo handler.
+build appenginevm This package implements a simple HTTP server providing a REST API to a todo handler.
Package todo provides a type and several functions for interacting with todos backed by the Appengine Datastore.
Package todo provides a type and several functions for interacting with todos backed by the Appengine Datastore.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL