Skip to content

Azouar2418/manga-app-Ruby

 
 

Repository files navigation

Home Page

Manga Heart

Manga Details

Manga Heart2

Comments

Manga Heart 3

Manga View

Manga Heart 4

Manga Heart

This is a Ruby on Rails application for managing manga collections, user comments, and admin functionalities. The app includes features like user authentication, role-based access control, comment editing, and more, with the goal of providing you a better manga reading experience from THE HEART.

Note: This is a non-profit application that makes use of the [MangaDex API] (https://api.mangadex.org), so there are limitation in viewing the image during live deployment, but otherwise there are no problems in viewing the images on the local machine.

Table of Contents

Features

  • User Authentication: Managed with Devise, users can sign up, log in, and manage their accounts.
  • Role Management: Using Rolify, users are assigned roles (e.g., admin, user).
  • Manga Management: Admins can add, edit, and delete manga entries.
  • Commenting System: Users can leave comments on manga entries.
  • Comments can be edited, and edited comments are marked with an "edited" indicator.
  • A "View More" and "View Less" functionality displays the first 5 comments with options to load more.
  • Admin Panel: Admins can manage users and manga.
  • Installation
  1. Clone the repository:
git clone https://github.com/CarlozLozada96/manga-app.git
cd manga_app
  1. Install dependencies:
bundle install
  1. Set up the database:
rails db:create
rails db:migrate
  1. Seed the database with default roles and admin users:
rails db:seed
  1. Start the server:
rails server
  1. Visit http://localhost:3000 in your browser to use the app.

Usage

  • User Registration and Login: Users can sign up and log in to access the application.
  • Admin Access: Admin users have additional privileges like managing manga and users.
  • Commenting: Users can leave comments on manga entries, with the option to edit them.
  • Viewing chapters: Users can view chapter pages either as a single page view or a multiple page veiw with pagination.

Roles

  • Admin: Full access to all features, including user and manga management.
  • Admins: Can view and comment on manga entries, and can also ban users.
  • User: Can view and comment on manga entries.

Comment Management

  • View More/Less: Initially, 5 comments are shown. Users can click "View More" to load additional comments or "View Less" to collapse them.
  • Edited Indicator: If a comment is edited, it will display an "edited" label next to the timestamp.

Contributing

If you'd like to contribute to this project, please fork the repository and submit a pull request. We welcome improvements and fixes!

License

This project is licensed under the MIT License. See the LICENSE file for details.

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 60.2%
  • HTML 24.7%
  • CSS 10.8%
  • JavaScript 2.2%
  • Dockerfile 1.9%
  • Shell 0.2%