Skip to content

Application to store and find recipes made during internship. Ruby on Rails, Hotwire, Tailwind CSS, slim, RSpec.

Notifications You must be signed in to change notification settings

MisterBolt/tasty-book

Repository files navigation

Recipebook

Ruby Rails Ruby Style Guide

Table of Contents

Getting Started

To get a local copy up and running follow these simple example steps.

Prerequisites

Installation

  1. Clone the repo
git clone https://github.com/Ragnarson-recruitment/recipe-book
  1. Install dependencies
bundle install
yarn install
  1. Create DB
rails db:setup
  1. Add required environments in app/.env
CLOUD_NAME=
API_KEY=
API_SECRET=
SHOPPING_TROLL_API_URL=

Development

List of usefull commands

  1. Boot application
rails s
  1. Manually run standardrb
bundle exec standardrb
  1. Run migrations
rails db:migrate
  1. Populate database
rails db:seed
rails db:seed:replant
  1. Catch mails in browser with MailCatcher
gem install mailcatcher
rbenv rehash
mailcatcher `(to run MailCatcher server)`

Test

List of usefull commands

  1. Run all specs
bundle exec rspec --format doc

Production

Link to application

http://rag-recipe-book.herokuapp.com/

List of usefull commands

  1. Add remote to your workspace
heroku git:remote -a rag-recipe-book -r staging
  1. Run deploy
git push staging
  1. Run migrations on server
heroku run rails db:migrate
  1. Populate database on server
heroku run rails db:seed
heroku run rails db:seed:replant

About

Application to store and find recipes made during internship. Ruby on Rails, Hotwire, Tailwind CSS, slim, RSpec.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published