Welcome to the PC-CRUD_MYSQL-Laravel-Angular project! π
This is a full-stack web application that demonstrates CRUD (Create, Read, Update, Delete) operations for managing PC-related data. It leverages a Laravel-based backend API and an Angular-based frontend, with MySQL as the database.
- Backend: Laravel framework serving as a RESTful API. π₯οΈ
- Frontend: Angular application for a dynamic and interactive user interface. π¨
- Database: MySQL for secure and efficient data storage. πΎ
- CRUD Operations: Full implementation of create, read, update, and delete functionalities. π§
Before setting up the project, make sure you have the following installed:
-
General:
- Node.js (required for Angular development and package management) π
-
Backend:
- PHP >= 7.3 π§
- Composer (for managing PHP dependencies) π¦
- MySQL (for database management) ποΈ
-
Frontend:
- Angular CLI (for Angular project management) π±
-
Clone the repository:
git clone https://github.com/Alexasto12/PC-CRUD_MSQL-Laravel-Angular.git cd PC-CRUD_MSQL-Laravel-Angular/server -
Install dependencies:
composer install
-
Configure environment:
- Duplicate
.env.exampleand rename it to.env. - Set your database credentials in the
.envfile (MySQL username, password, database name, etc.). π
- Duplicate
-
Generate application key:
php artisan key:generate
-
Run migrations and seed the database:
php artisan migrate --seed
-
Start the server:
php artisan serve
The backend API should now be running at
http://localhost:8000/π.
-
Navigate to the client directory:
cd ../client/PC_Client -
Install dependencies:
npm install
-
Start the Angular development server:
ng serve
The frontend application should now be running at
http://localhost:4200/. π
Once both the backend and frontend servers are up and running, you can access the web application through your browser. The app allows you to manage your PC records efficiently with the ability to create, read, update, and delete PC-related entries. π±οΈ
This project is licensed under the MIT License. Feel free to fork and contribute! π
We welcome contributions to make this project better! If you'd like to contribute, please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature-name). - Make your changes.
- Commit your changes (
git commit -am 'Add new feature'). - Push to the branch (
git push origin feature-name). - Create a new pull request.
Let's collaborate! π‘