codeforgso / GoVote

Local voter registration and election candidate application.
http://govotegso.org/
GNU General Public License v3.0
24 stars 46 forks source link

Move project to docker #53

Closed SchaeStewart closed 6 years ago

SchaeStewart commented 6 years ago

Added Dockerfile, docker-compose.yml, create-tables.js, and rewrote etl.js. Updated Contributing.md with examples of how to run the project.

Description

The Dockerfile creates the govote image.
docker-compose.yml defines how the govote service and the database interact.
create-tables.js. uses a query (which I generated from the aws database) to create the guilfordvoters table. The etl script now uses async/await and promises and is no longer throwing errors.

Related Issue

46 Move project to docker

Motivation and Context

This standardizes our dev environments and moves contributors away from sharing aws keys to access the database.
It will also make it easier for other brigades/organizations to run and use the project.

How Has This Been Tested?

I've tested it locally on my Mac. Further testing should be done before merging. We also need to test the etl script in prod to ensure everything works properly, since I completely rewrote it.

Checklist:

BlakeGuilloud commented 6 years ago

Tagging @marshallj in this as well.