GitXplorerGitXplorer
j

sample-deployer

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
0179f8b498c014a42d816bfab95b0fd32f77b386

still to big and GH is too slow

jjamiesmith committed 8 years ago
Unverified
9959a24b422798b2c5a94a5541d7fa7eae7e36c7

too big!

jjamiesmith committed 8 years ago
Unverified
e2bfbda60a21bc82c1800edee8289fa80843706e

new button

jjamiesmith committed 8 years ago
Unverified
9883cfddf9b6bad77f96dc0004429d4e7b78fa16

new art stuff

jjamiesmith committed 8 years ago
Unverified
3d08b9555e8d8b5a2a8148ab70cf986ce103a6ef

new IPs for demo

jjamiesmith committed 8 years ago
Unverified
5d8680f5a386a96903da762a2151cdf57928a212

format code

jjamiesmith committed 8 years ago

README

The README file for this repository.

ToDoMap Demo App

A simple NodeJS ToDo app with a twist - it can show you the source and type of provider serving the underlying REST API.

Deploying on Apcera

To get your own Todo App running on Apcera, click the button below:

Deploy

Fill out the form, and you should be good to go in a few seconds.

Configuration

There is 'config.json' that maps IP addresses to implied cloud provider, region, map marker and map marker position.

Local Deployment

Assuming you have a local MongoDb

% cp dot.env .env
% npm install
% npm start

You can edit .env to set up POSTGRES_URI or MYSQL_URI if required.

Usage

Database Binding

Supports Postgres, MySql and Mongo.

If env variables for none are present then an In Memory record of the To Dos is kept - clearly only useful in a single instance situation and as a starting point

If in-memory is used a warning alert is placed in the UI to remind you that there is no persistence.

If you want to bind your app to a mysql provider while creating the app, you can add something like the following to continuum.conf:

services [
   {
      provider_name : "/apcera/providers::mysqlprovider",
      type: "mysql",
      service_name: "todo_mysql",
   }
]

Cluster Locations

There is a cluster location map which shows the locations defined by the cluster. This map relies on the config.json file, and looks for tags based on the "datacenter" tag. The current IP is used to determine which cluster you are in, then shows the other nodes from that cluster.

Sample Cluster Locations

The server map section of the page has also been updated to do this. The map stays where it is, and the active node jumps around while running, while nodes are present.