appengine-dart-todos
TodoMVC backend and frontend using the appengine Dart package.
Prerequisites
- Create a new cloud project on console.developers.google.com
- Note your Project ID. You will need it later.
FYI: You can view the content of your project's Cloud Datastore on the Google Developers Console in Storage > Cloud Datastore > Query after adding your first Todos.
Running and deploying
You need to install boot2docker and then install and setup the Google Cloud SDK:
# 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 Dart Docker image
$ docker pull google/dart-runtime
To run the app locally:
$ gcloud preview app run app.yaml
To open the app locally visit http://localhost:8080
.
To deploy the app to production:
$ gcloud preview app deploy app.yaml
To open the app on production visit http://<Project ID>.appspot.com
.
Notes
The frontend code located in /web
and /lib
is a copy of the
Vanilla Dart
version of the TodoMVC frontend and adapted to use the TodoMVC Server API
handlers.