Skip to content

Getting Started

Polina Soshnin edited this page Feb 6, 2016 · 6 revisions

Getting Started

Prerequisites

  • Node/NPM, Nodemon, Node Foreman
  • Postgres
  • Bower

Installation

$ git clone https://github.com/httparty/matchjs.git
$ cd matchjs
$ npm install //installs both Bower and NPM dependencies
$ npm start //starts Node Foreman and loads environment variables

Environment Variables

Node Foreman is used to load environment variables.

  • Install globally to your machine using npm install -g foreman
  • Create a file called .env in your root folder. It's gitignored so it won't be sent with your PR.
  • Store any variables in your .env that you want 'process.env' to know about.

.env for MatchJS:

DATABASE_URL='postgres://username:pw@pguri.com:5432/matchjs'
GITHUB_CLIENT_ID='github-client-id'
GITHUB_CLIENT_SECRET='github-client-secret'
CALLBACK='http://localhost:5000/auth/github/callback'
GOOGLE_CALLBACK='http://127.0.0.1:5000/api/calendar/auth/google/callback'
GOOGLE_CLIENT_ID='google-client-id'
GOOGLE_CLIENT_SECRET='google-client-secret'
GMAIL_URL='smtps://email-address:pw@smtp.gmail.com'
Clone this wiki locally