Skip to content

andrewbredow/artprize-vote

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Artprize Voting App

Demo for GRDevDay 2015

See the accompanying slides here.

Step through the commits to follow the project as we derive a multi process voting server from a simple function with an accumulator to hold votes.

When you're through with this, you may be interested in checking out the more full-featured Phoenix version of this application. It utilizes GenServer to run the actual Vote server under the app's supervision.

To start the console to play with the demo:

  1. Navigate to the project directory
  2. Run iex -S mix
  3. Start the server process with: {:ok, pid} = ArtprizeVote.start_server
  4. Send your votes to the server process: send pid, {self, :add_vote, {16, 69, {-85.6, 43}}}, etc...
  5. Check the messages the server sends back to the main process by running flush

About

A sample Elixir app with Grand Rapids flair

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages