/Cinemax

This is a Rails web application where you can view articles about movies and can be browsed by category.

Primary LanguageRuby

Cinemax

Cinemax is a web apllication i built using ruby on rails where the Authenticated user;

  • can create articles categories
  • can create articles and link those articles to many categories
  • can vote an article
  • The homepage shows a featured article (which has the biggest number of votes), and the list of all the categories in order of priority
  • The category page show all the articles for a category
  • The articles page shows all the articles.

Project screenshot

screenshot screenshot

🔨 Built with

  • Ruby on Rails 6.1.3
  • Ruby 2.7.1
  • Bootstrap 4
  • rubocop linters
  • rspec
  • Vs code

Live Demo

See demo

Video Link

Presentation

To run the project locally

Fork or clone the repository from here

 git clone https://github.com/Byabasaija/Cinemax.git

Open terminal and navigate to root directory.

Run these commands;

bundle install
rails db:create
rails db:migrate
rails s

Then visit localhost:3000

How to run the test suite

I added validations tests and association tests for all models. 1 added also integration tests for authentication and category creation Run these tests with those commands:

unit tests

 rspec spec/user_spec.rb`
 rspec spec/category_spec.rb`
 rspec spec/article_spec.rb`
 rspec spec/vote_spec.rb`

integration tests

rspec spec/features/authentication_spec.rb
rspec spec/features/new_category_spec.rb`

👨🏽‍ Creator

👤 Pascal

Acknowledgement

Design idea by Nelson Sakwa in Behance

🤝 Contributing

Contributions, issues and feature requests are welcome!

Show your support

Give a ⭐️ if you like this project!

📝 License