GithubHelp home page GithubHelp logo

adicostil / docker-voting-app-nodejs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from subfuzion/voting-app

0.0 2.0 0.0 5.49 MB

Example Docker Voting App (Node.js version)

License: MIT License

Smarty 2.56% JavaScript 96.94% Shell 0.51%

docker-voting-app-nodejs's Introduction

Docker Voting App (Node.js version)

Build Status

Service Docker Image Build Status
API     subfuzion/vote-api Docker build
Worker subfuzion/vote-worker Docker build
Auditor subfuzion/vote-auditor Docker build
Database Mongo Docker build
Queue Redis Docker build
Node.js Packages npm Build Status
@subfuzion/database npm (scoped) Travis
@subfuzion/queue npm (scoped) Travis

Quick Start

Get Docker for free from the Docker Store. This app will work with versions from either the Stable or the Edge channels.

If you're using Docker for Windows on Windows 10 pro or later, you must also switch to Linux containers.

Run in this directory:

$ docker-compose up

You can test it with the voter CLI:

$ docker run -it --rm --network=host subfuzion/voter vote
? What do you like better? (Use arrow keys)
  (quit)
❯ cats
  dogs

You can print voting results:

$ docker run -it --rm --network=host subfuzion/voter results
Total votes -> cats: 4, dogs: 0 ... CATS WIN!

When you are finished:

Press Ctrl-C to stop the stack, then enter:

$ docker-compose -f docker-compose.yml rm -f

Docker Swarm

You can also run it on a Docker Swarm. If you haven't initialized one yet, run:

$ docker swarm init

Once you have initialized a swarm, then deploy the stack:

$ docker stack deploy --compose-file docker-stack.yml vote

You can test it the same way as described for docker-compose. When finished, you can stop the stack by entering:

$ docker stack rm vote

Kubernetes

Kubernetes and Helm chart support has been added to the repo. Instructions coming soon.

Amazon ECS with Fargate

Deploy to AWS ECS with Fargate

GKE

Coming soon.

About the Voting App

Voting app architecture

This app is based on the original Docker Example Voting App.

For more information, please see the wiki.

Introduction to Docker Course

The app will be used for an introductory course called Software Containerization with Docker for Developers.

The course will be offered through the UC Davis Extension online program, available on Coursera sometime in the spring of 2018.

See the wiki for more detail about course modules.

License

The Voting App is open source and free for any use in compliance with the terms of the MIT License.

docker-voting-app-nodejs's People

Contributors

subfuzion avatar ndegory avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.