Skip to content

joancodes/showd

Repository files navigation

Ruby Style Guide

SHOWD App

This is a modified Broadway look alike web app that allows users to add movies and series (with full CRUD ability), assign to Categories (Genres of the movies and series) and also Review using a 5-star rating system (w/ Average Ratings as well).

What has changed?

  1. Uploading of images using Active Storage instead of Paper Clip (including validations of attachments).
  2. Adding a favicon using RealFaviconGenerator.
  3. More CSS styling.
  4. The name too.

Getting started

Clone the repository

git clone https://github.com/joancodes/showd.git
cd showd 

Check your ruby and rails versions

ruby -v 
rails -v

The ouput should start with something like ruby 3.3.0 Rails 7.0.2.4

If not, install the right ruby and rails versions using rbenv (it could take a while):

rbenv install 3.3.0
gem install rails -v 7.0.2.4

Install dependencies

Using Bundler and Yarn

bundle && yarn

In use Bundler version 2.3.3 and yarn -v 1.22.21

Initialize the database

rails db:create db:migrate db:seed

Note: this application is using the default ruby database

Serve

rails s

This will generate auto-code to start the server

=> Booting Puma
=> Rails 7.0.2.4 application starting in development
=> Run `bin/rails server --help` for more startup options
Puma starting in single mode...
* Puma version: 5.6.8 (ruby 3.3.0-p0) ("Birdie's Version")
*  Min threads: 5
*  Max threads: 5
*  Environment: development
*          PID: 62431
* Listening on http://127.0.0.1:3000
* Listening on http://[::1]:3000
Use Ctrl-C to stop

Now open your browser and type the following http://localhost:3000 to load the application.