RottenPotatoes is a movie management application that allows users to create, update, and delete movies. It also supports sorting movies by title, rating, and release date.
Ensure you have the following software installed on your machine:
- Ruby: You can check your Ruby version with
ruby -v. This project is compatible with Ruby 3.1.0. - Rails: Check your Rails version with
rails -v. The project uses Rails 7.2.1. - Database: PostgreSQL or SQLite3 is required for database management.
Install the required gems by running:
bundle installConfigure your environment settings in the config folder. Ensure you have set up the database configuration in config/database.yml according to your development and production environments.
To set up the database, run:
rails db:createInitialize the database schema with:
rails db:migrateSeed the database with initial data using:
rails db:seedTo run the test suite, use:
rails testFor deploying to Heroku:
- Deploy the app:
git push heroku main- Run database migrations on Heroku:
heroku run rails db:migrate- Seed the database on Heroku (if needed):
heroku run rails db:seed- Open the app: Heroku App