To get a local copy up and running follow these simple example steps.
- Ruby & Postgresql
- Clone the repo
git clone https://github.com/Ragnarson-recruitment/recipe-book- Install dependencies
bundle install
yarn install- Create DB
rails db:setup- Add required environments in
app/.env
CLOUD_NAME=
API_KEY=
API_SECRET=
SHOPPING_TROLL_API_URL=List of usefull commands
- Boot application
rails s- Manually run standardrb
bundle exec standardrb- Run migrations
rails db:migrate- Populate database
rails db:seed
rails db:seed:replant- Catch mails in browser with MailCatcher
gem install mailcatcher
rbenv rehash
mailcatcher `(to run MailCatcher server)`List of usefull commands
- Run all specs
bundle exec rspec --format docLink to application
http://rag-recipe-book.herokuapp.com/List of usefull commands
- Add remote to your workspace
heroku git:remote -a rag-recipe-book -r staging- Run deploy
git push staging- Run migrations on server
heroku run rails db:migrate- Populate database on server
heroku run rails db:seed
heroku run rails db:seed:replant