Randomized Lunch Selector
JavaScript HTML ApacheConf CSS Shell
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
client
e2e/main
grunt
migrations
server
.bowerrc
.editorconfig
.gitattributes
.gitignore
.nvmrc
.sequelizerc
.travis.yml
Gruntfile.js
README.md
karma.conf.js
package.json
protractor.conf.js

README.md

lunchadores

Randomized Lunch Selector. Application code structure is based off of yeoman's generator-angular-fullstack.

Demo
http://www.lunchadores.com/

Development Startup

Install Dependencies
  • Install node modules. npm install
  • Install postgres. brew install postgres
  • Install sequelize-cli. 'npm install -g sequelize-cli'
Bootstrap Processes
  • postgres

    1. CREATE DATABASE lunchadores_dev;
    2. CREATE DATABASE lunchadores_test;
    3. CREATE ROLE lunchadores_user WITH PASSWORD 'foodie' LOGIN;
    4. GRANT ALL ON DATABASE lunchadores_dev TO lunchadores_user;
    5. GRANT ALL ON DATABASE lunchadores_test TO lunchadores_user;
  • Move to the root of the repo and migrate your database. 'sequelize db:migrate'.

  • grunt serve

  • go to http://localhost:9000

Production Deployment

  • run test suite. grunt test.
  • confirm all your changes with grunt serve:dist. This will use production versions of everything including a non-seeded database.
  • commit your updates. git commit
  • push to github. git push origin master
  • push to heroku. grunt buildcontrol:heroku
  • migrate production if needed. heroku run sequelize db:migrate
  • verify changes are in place on production