GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - GoogleCloudPlatform/google-cloud-node-todos: TodoMVC backend using gcloud-node

This repository was archived by the owner on Nov 13, 2026. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

78 Commits
78 Commits

Folders and files

NameName
Last commit message
Last commit date
test
test
 
 
.dockerignore
.dockerignore
 
 
.gitignore
.gitignore
 
 
.mocharc.json
.mocharc.json
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
cli.js
cli.js
 
 
cloudbuild.yaml
cloudbuild.yaml
 
 
index.js
index.js
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
renovate.json
renovate.json
 
 
server.js
server.js
 
 
todos.js
todos.js
 
 

Repository files navigation

google-cloud-node-todos

TodoMVC backend using google-cloud-node.

Prerequisites

  1. Create a new cloud project on console.developers.google.com

  2. Enable the Google Cloud Datastore API. For more information about the Cloud Datastore, see here.

  3. Create a new service account and copy the JSON credentials to key.json

  4. Export your project id:

    $ export PROJECT_ID=<project id>

Running

Locally

# Set your default Dataset
$ export DATASET_ID=$PROJECT_ID

# Install the dependencies
$ npm install

# Start the server
$ npm start

Docker

# Check that Docker is running
$ boot2docker up
$ $(boot2docker shellinit)

# Build your Docker image
$ docker build -t app .

# Start a new Docker container
$ docker run -e DATASET_ID=$PROJECT_ID -p 8080:8080 app

# Test the app
$ curl -X GET http://$(boot2docker ip):8080

Managed VMs

# Get gcloud
$ curl https://sdk.cloud.google.com | bash

# Authorize gcloud and set your default project
$ gcloud auth login
$ gcloud config set project $PROJECT_ID

# Get App Engine component
$ gcloud components update app

# Check that Docker is running
$ boot2docker up
$ $(boot2docker shellinit)

# Download the Node.js Docker image
$ docker pull google/nodejs-runtime

# Run the app locally
$ npm start
$ curl -X GET http://localhost:8080

# Deploy the app to production
$ gcloud app deploy
$ curl -X GET http://$PROJECT_ID.appspot.com

Command Line

This sample can also be run from the command line:

$ npm link
$ datastore-todos

Resources

  • Command Line Example
  • Node.js on the Google Cloud Platform

About

TodoMVC backend using gcloud-node

gcloud-todos.appspot.com

Resources

Readme
Apache-2.0 license

Contributing

Contributing
Activity
Custom properties

Stars

114 stars

Watchers

32 watching

Forks

59 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.