This README provides requirements and information on how to get the application up and running.
- 3.1.2
Please make sure you have the following system dependencies installed:
- Ruby 3.1.2
- Rails 7.0.0
- PostgreSQL
To configure the application, follow these steps:
- Clone the repository to your local machine.
- Navigate to the application's root directory.
- Run
bundle install
to install all the necessary gems. - Run
rails db:create
to create the database. - Run
rails db:migrate
to run the database migrations. - Run
rails db:seed
to seed the database with the default data in aleatory order. - Run
rails s
to start the server.
To run the test suite, follow these steps:
- Navigate to the application's root directory.
- Run
bundle exec rspec
to run the test suite. - Open the
coverage/index.html
file to view the test coverage.
Returns all contents in the database. It accepts the following parameters:
Content Type | Page | Per Page |
---|---|---|
[nil, "", 'movie', 'tv_show'] | [integer] | [integer] |
Simply returns http status 200 for health check.