Skip to content

spoonboy-io/todo-deployment-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Todo Deployment App

This is a simple Todo list application which connects to a Postgres database or cluster, intended to assist in a Morpheus Deployments training session.

Based on the example found in here.

Modified so that the external assets are part of the binary to simplify deployment.

Setup

Grab a release from the releases page, download and extract the binary.

There are two releases (v1.0.0 & v2.0.0) which have visual differences in the UI to demonstrate deployment versioning.

Create a Morpheus deployment with the binary.

Create a Morpheus script file config.env which contains the single required environment variable PG_HOST. All other connection info is hardcoded in the app for simplicity, but may be overridden here. The location of this file is passed as a command line flag.

# POSTGRES CONFIG
PG_HOST=54.237.172.XXX

# OPTIONAL TO OVERRIDE DEFAULTS
#PG_PORT=               # default is 5432
#PG_USER=               # default is postgres
#PG_PASSWORD=           # default is Password123?
#PG_DATABASE=           # default is todos
#APP_SERVER_PORT=       # default is 8090

Run

Run the application like this:

./todo -config={absolute path to config.env}

Optionally nohup the call or set up as a service so tasks can be created to start and stop the app in Morpheus.

View the app in your browser at:

http://deploymentserver_ip:8090

About

Simple TODO Application for Morpheus deployments demo

Resources

Stars

Watchers

Forks

Packages

No packages published