Skip to content

Getting Start

chinyakao edited this page Jun 2, 2022 · 1 revision

Requirements

Permissions

  • Collaborator of SurveyMoonBear organization in Github
  • Collaborator of Heroku moonbear app

Credentials

SETUP

Run on local

  1. Clone the repo
$ git clone git@github.com:SurveyMoonBear/SurveyMoonbear_APP.git
  1. Install gems
$ bundle install --without production

if it bumps into this problem Could not open library 'sodium' cannot load such file -- rbnacl, please install libsodium first

  1. Add config/secret.yml file

  2. Run DB migrations

$ rake db:migrate
$ RACK_ENV=test db:migrate
  1. Run tests
$ rake spec
  1. Run the app
$ rake run:dev

Get Remote Access

Create a Heroku remote to existing Heroku repo

$ heroku git:remote -a moonbear