This is a simple Books Management project developed with Vue.js and Laravel. It showcases the CRUD (Create, Read, Update, Delete) operations between the Vue.js frontend and Laravel backend.
- Add, edit, and delete books easily.
- Users can add books by entering the relevant details like title, price, and description.
- Users can view the list of books, edit specific book details, and delete books when needed.
- A custom 404 page is included for a user-friendly experience.
- Vue.js
- Laravel
- MySQL
Before running this project, make sure you have the following software installed:
- Node.js: Download Node.js
- Composer: Download Composer
-
Create a new database named
2_book_laravel_vue_crud
to store the tasks. -
Clone the repository:
git clone https://github.com/eng-mohammad-mousa/Books_Management.git
- Navigate to the project directory:
cd Books_Management
- Install the required dependencies:
composer install
npm install
- Copy the
.env.example
file and rename it to.env
. Update the necessary database configurations in the.env
file.
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=2_book_laravel_vue_crud
DB_USERNAME=root
DB_PASSWORD=
- Generate a new application key:
php artisan key:generate
- Run the database migrations:
php artisan migrate --seed
- Build and compile the frontend assets:
npm run build
- Start the development server:
php artisan serve
- Access the application in your browser by visiting
http://localhost:8000
.
Contributions are welcome! If you have any ideas, suggestions, or bug reports, please open an issue on the GitHub repository.