/LG-OSS-prrr

(Pull Request, Review Request) Learners Guild internal git pull request review tool.

Primary LanguageJavaScript

Pull Request Review Request

CircleCI

Prrr

prrr

Development

npm install
npm run build

Setup

Go here and register a new OAuth application.

Application name: prrr development
Homepage URL: http://localhost:3000/
Application Description:
Authorization callback URL: http://localhost:3000/auth/github/callback

NOTE: you can use any port you want. It doesnt need to be 3000

Create a .env file like this:

NODE_ENV=development
PORT=3000
GITHUB_CLIENT_ID=<FOLLOW GITHUB INSTRUCTIONS>
GITHUB_CLIENT_SECRET=<FOLLOW GITHUB INSTRUCTIONS>
GITHUB_CALLBACK=http://localhost:3000/auth/github/callback
SESSION_KEY=thiscanbeanyoldrandomstring

NOTE: you can use any port you want as long as it matches your github oauth

Database

*NOTE: you need to run npm run build before you can run knex commands

createdb prrr-development
createdb prrr-test
knex migrate:latest