Skip to content

Latest commit

 

History

History
23 lines (12 loc) · 1.04 KB

README.md

File metadata and controls

23 lines (12 loc) · 1.04 KB

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.