This is a comprehensive book review platform built with the Laravel framework. It allows users to discover books, share their opinions through reviews and ratings, and engage with a community of readers. Administrators have oversight over the content to ensure quality and appropriateness.
- User Authentication: Secure registration and login for users.
- User Profiles: Users can manage their profile information.
- Book Management: Admins can add, edit, and delete book listings.
- Browse Books: Users can browse and search for books.
- Book Details: View detailed information for each book.
- Review System: Authenticated users can write and submit reviews for books.
- Star Ratings: Users can give a star rating (1-5) along with their review.
- Admin Review Approval: New reviews are held for moderation and must be approved by an administrator before being publicly visible.
- Edit/Delete Reviews: Users can edit or delete their own reviews.
- My Reviews Page: A dedicated page for users to see all the reviews they have submitted.
- PHP
- Laravel
- MySQL
- Blade Templating Engine
- JavaScript
- Vite
- Bootstrap
Follow these steps to get the project up and running on your local machine.
-
Clone the repository:
git clone https://github.com/your-username/book-review.git cd book-review -
Install PHP dependencies:
composer install
-
Create your environment file:
copy .env.example .env
-
Generate an application key:
php artisan key:generate
-
Configure your database: Create a new database and update your
.envfile with your database credentials (DB_DATABASE, DB_USERNAME, DB_PASSWORD). -
Run database migrations and seeders:
php artisan migrate --seed
-
Install NPM dependencies:
npm install
-
Build assets:
npm run dev
-
Start the development server:
php artisan serve
-
Visit the application: Open your browser and go to
http://127.0.0.1:8000.
- User: Can register, log in, browse books, and submit/manage their own reviews.
- Admin: Has all user privileges, plus the ability to manage books and approve/reject user-submitted reviews.