Skip to content
The neighborhood voting platform
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
delivery
infra
packages split signin and register Jan 5, 2019
public
scripts
server
webpack
.dockerignore
.gitignore
.travis.yml
Makefile
README.md
docker-compose.yml
jest.config.js
package.json
prettier.config.js
production.yml
tests.js
tsconfig.json
tslint.json
yarn.lock

README.md

YouHood Build Status

Crowd sourced neighborhood boundary site

Requirements

  • node
  • docker

Dev

Required Environment Variables

  • PGPASSWORD # password for postgresql
  • GOOGLE_API_KEY # required for geolookup of neighborhoods as well as searching for a location
yarn
docker-compose up
docker logs # terminal 1
make dev # terminal 2
make server #  terminal 3
make psql # terminal 4

Local Deploy

All of our servers are built using Google Cloud Build and stored using Google Storage. So in order for this deploy to work, the latest images must be pushed to Google Storage.

First we need to download the docker machine cert from google storage

gsutil cp gs://youhood/youhood-1.zip youhood-1.zip

Then we load the cert

yarn global add machine-share
machine-import youhood-1.zip

Then we deploy

eval $(docker-machine env youhood-1)
docker-compose -f production.yml up --no-deps -d

Wipe db

eval $(docker-machine env youhood-1)
docker-compose -f production.yml down -v
docker-compose -f production.yml up --no-deps -d
You can’t perform that action at this time.