-
Notifications
You must be signed in to change notification settings - Fork 3
Getting Start
chinyakao edited this page Jun 2, 2022
·
1 revision
- Collaborator of SurveyMoonBear organization in Github
- Collaborator of Heroku moonbear app
- Dev & Test:
- Create config/secrets.yml on local secrets_example.yml
- Use your personal Google account and apply for Google Drive API Token
- Use your personal AWS account and apply for AWS SQS Token
- Production:
- Survey Moonbear's Google Drive account & password
- Clone the repo
$ git clone git@github.com:SurveyMoonBear/SurveyMoonbear_APP.git
- 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
-
Add config/secret.yml file
-
Run DB migrations
$ rake db:migrate
$ RACK_ENV=test db:migrate
- Run tests
$ rake spec
- Run the app
$ rake run:dev
Create a Heroku remote to existing Heroku repo
$ heroku git:remote -a moonbear