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.
- 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
- Clone the repository:
git clone https://github.com/CarlozLozada96/manga-app.git
cd manga_app
- Install dependencies:
bundle install
- Set up the database:
rails db:create
rails db:migrate
- Seed the database with default roles and admin users:
rails db:seed
- Start the server:
rails server
- Visit http://localhost:3000 in your browser to use the app.
- 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.
- 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.
- 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.
If you'd like to contribute to this project, please fork the repository and submit a pull request. We welcome improvements and fixes!
This project is licensed under the MIT License. See the LICENSE file for details.