Skip to content
No description, website, or topics provided.
JavaScript
Branch: master
Clone or download
Latest commit 3eb5374 Aug 14, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci Updates to circleci config Aug 12, 2019
app renaming (#16) Aug 14, 2019
config Production DB configs Aug 1, 2019
migrations Use created_at col to determine previous and current cycle (#12) Aug 7, 2019
test
.editorconfig Added editor config Jul 25, 2019
.env.sample Merge branch 'master' into export-to-google-sheets Aug 1, 2019
.eslintrc.json Fix eslint error Jul 25, 2019
.gitignore Ignore editor preferences Jul 23, 2019
.nvmrc Add nvmrc to help with knowing which node version to use in dev Jul 30, 2019
.prettierrc.json Minor ESlint/Prettier changes Jul 23, 2019
LICENSE Add MIT Licence Jul 24, 2019
README.md Improve Readme Jul 29, 2019
index.js Set the correct port for Heroku Aug 1, 2019
package.json Catch timneout Aug 8, 2019
reminder.js reminder file Aug 14, 2019
yarn.lock Catch timneout Aug 8, 2019

README.md

Lunchinator

CircleCI

An app to select people to go for lunch.

Installation for Development

  • You need to have Yarn installed (brew install yarn)
  • Move into the lunchinator directory
  • Run yarn
  • Need to populate a .env file; please look at the sample for for an example.

Setup Test/Dev Databases

We are using PostgreSQL to store information. You need to have two databases locally.

  • Ensure PostgreSQL is installed and running (brew install postgresql and brew services start postgresql).
  • Using psql postgres do the following:
  • CREATE DATABASE lunchinator_dev; CREATE DATABASE lunchinator_test;
  • Grant permission for your user: GRANT ALL PRIVILEGES ON DATABASE lunchinator_dev TO $USER and GRANT ALL PRIVILEGES ON DATABASE lunchinator_test TO $USER; (replacing $USER with your username from whoami)
  • Then run yarn run migrate up for development and yarn run migrate-test up for test

Using Slack App in Development

We use ngrok to route traffic from the internet to our machine. See guide: https://api.slack.com/tutorials/tunneling-with-ngrok

You can’t perform that action at this time.