Giter Club home page Giter Club logo

voting-app's Introduction

Voting App

this application is based on Docker's example voting app.

Badges for MicroServices status

MicroService Status
Vote Codefresh build status
Worker Codefresh build status
Result Codefresh build status

Architecture

Architecture diagram

  • A Python webapp which lets you vote between two options
  • A Redis queue which collects new votes
  • A .NET worker which consumes votes and stores them in…
  • A Postgres database backed by a Docker volume
  • A Node.js webapp which shows the results of the voting in real time

####* http://blog.terranillius.com/post/composev3_swarm/

Getting started

####Perquisites:

  1. Fork this repository.
  2. Add this repository to your Codefresh account.
  3. Set your Docker registry (Docker Hub, GCR etc.) in your account admin. This is in case you want to push.

(If you don't want to set the credentials in the admin or want to use a different credentials see example push.with.credentials.yml in the vote folder.)

####Build and Push each service separately:

  1. Go to The Service settings Service settings
  2. Create 3 services: vote, result and worker.
  3. Set each service's Use YML build property to ON. Optional: set Add webhooks to on. This will trigger build on every commit.
  4. Set the YML location to ./vote/codefresh.build.and.push.yml for the vote service. Do the same for each one of the other services, and just change the vote to result or worker. Pipelines settings
  5. You can now press Build for each one of the pipelines that you want. Just select which one on the dropdown. Pipelines settings Pipelines settings

####Build and Push all the services: If you want to create on build for all the services you can just add one service with a yaml that will build all of them.

  1. Go to The Service settings Service settings
  2. Create only one service
  3. Set service's Use YML build property to ON.
  4. Set the YML location to ./codefresh.yml.
  5. You can now press Build and build your service. Service settings

About Containers 101

Containers 101 is online/offline meetup group based in Mountain View that provides guides and helps developers work with Containers. Created by Codefresh which provides environments for every commit, Docker CI and CD, and an embedded registry.

Join Containers 101 Learn more about Codefresh

voting-app's People

Contributors

aanand avatar bfirsh avatar bmeiri avatar dave-tucker avatar h0tbird avatar manomarks avatar marcellodesales avatar mohan08p avatar superfresh avatar verchol avatar

Forkers

rishirajs123

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.