Update 03-09-2017: This repository is now published as open source software under the GPL 3 License (see the LICENSE file).
Warning: Please take the appropriate security measures before running this software in production.
Prerequisites
- Ruby, should come preinstalled on your Mac
- Homebrew
- Wget,
brew install wget
- Git,
brew install git
- PostgreSQL, do not install via Homebrew or use version 9.6 as that causes the migrations to fail
- Add
export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/latest/bin
to your~/.bash_profile
andsource ~/.bash_profile
. Doingwhich psql
should report the installation - Node.js,
brew install homebrew/versions/node6-lts
, do not use v7 as some dependencies are incompatible npm install -g knex
, for doing the database migrationsnpm install -g yarn
, for efficient dependency management
Install dependencies
yarn
Local database
psql -c "CREATE USER tippiq_places WITH PASSWORD 'tippiq_places' SUPERUSER"
psql -c "CREATE DATABASE tippiq_places WITH OWNER tippiq_places"
export TIPPIQ_PLACES_DATABASE_URL='postgresql:https://tippiq_places:tippiq_places@localhost:5432/tippiq_places'
npm run dev
Open localhost:3010/styleguide to verify
knex seed:run
npm run prod
npm test:...