Skip to content

alexellis/faas-example-voting-app

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FaaS conversion of Docker Voting app

This is very similar to Docker's example voting app, except instead of using a message queue and worker, it calls a FaaS function to process votes in the background.

The FaaS function being used is in process-vote/handler.js, and it is called from vote/app.py.

Getting started

Download Docker for Mac or Windows.

Find out more about FaaS

Run in this directory:

$ docker stack deploy func -c ./docker-compose.yml

The app will be running at http://localhost:5000, and the results will be at http://localhost:5001.

The API gateway will run at http://localhost:8080

History

This repository is a fork of an example Ben Firshman put totgether while @Docker to show how his Funker framework could process votes for the Docker Voting App.

About

Docker Voting app ported to FaaS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages

  • JavaScript 95.5%
  • CSS 1.9%
  • HTML 1.7%
  • Other 0.9%