- OS X
- install
yarn
brew install yarn
- install
postgres
brew install postgres
- start
postgres
via homebrewbrew services start postgres
- install
rbenv
brew install rbenv
- install Ruby
v2.7.1
rbenv install 2.7.1
- clone project
git clone [email protected]:youracclaim/credly-take-home.git
cd
into project directorycd /path/to/credly-take-home
- install
foreman
gem install -N foreman
- install bundled gems
bundle install
- install yarn packages
yarn install
- set up development database
bundle exec rake db:setup
- install
- Docker
- build and run containers
docker-compose up --build
- set up database
docker-compose run web rails db:setup
- build and run containers
- run
foreman start -f Procfile.dev
- open
localhost:5000
in your browser
- create a Heroku account if you don't already have one
- install Heroku CLI tools
brew tap heroku/brew && brew install heroku
- log into Heroku
heroku login
- create a new app
heroku apps:create
- take note of app name, e.g.
pacific-fortress-65242
- add Heroku remote repo for the app that was just created
heroku git:remote -a pacific-fortress-65242
- deploy your app
git push heroku main
- ignore warnings
- link to app will include app name, e.g. https://pacific-fortress-65242.herokuapp.com/