- Install xcode command line tools and homebrew
brew install rbenv ruby-build libpq readline yarn
- Follow printed instructions on activating rbenv in your shell
RUBY_CONFIGURE_OPTS=--with-readline-dir=
brew --prefix readlinerbenv install 2.6.2
git clone [email protected]:kindlyops/chirpyhire.git
cd chirpyhire
ruby -v
should show version 2.6.2.which ruby
should show an rbenv path similar to/Users/emurphy/.rbenv/shims/ruby
gem install foreman
gem install bundler
bundle config --local build.pg --with-opt-dir="/usr/local/opt/libpq"
bundle install
yarn install
rbenv rehash
- brew install redis (remember to start redis)
- set up https://postgresapp.com with PostgreSQL 10
rails db:create && rails db:migrate && rails db:seed && rails assets:precompile
rspec
./start
open localhost:3000
- Install docker and docker-compose.
- Get
.env
file from a developer. You can use dummy keys to help run tests. - build containers, set up database
docker-compose up -d
docker-compose exec website rails db:create
docker-compose exec website rails db:migrate
docker-compose exec website rails db:seed
docker-compose exec website rails assets:precompile
open localhost:3000
Ensure you have a clean install:
rails db:drop && rails db:create && rails db:migrate && rails db:seed
Start Local Server:
foreman start -f Procfile.dev
TODO: describe how to use the demo environment
Use ngrok tunnel For Twilio Webhook:
ngrok http 3000
Login to Twilio and set SMS Webhook URL to the Dynamic ngrok URL. More info
Use test keys and test environment.
rspec spec/models/contact_spec.rb
rspec spec/lib/reminder/**
To get a local rails console:
rails console
Find a user
a = Account.find_by_email '[email protected]'