This project is a web application designed to manage Library and increase productivity. User can add, update, make invoice, see invoices history, delete Books and Connect by AWS Service
- Book add, editing, and deletion
- Make Invoice
- Monitoring invoice records
- EC2 and RDS connection
-
Clone the repository:
https://github.com/IbrahimKhalid11/Library.git
-
Edit APP_URL on .env
APP_NAME=Laravel APP_ENV=local APP_KEY=base64:6YpHWMoi4lv5D4FijWkIzFWMGIpP8SA+N7H38k9rlPE= APP_DEBUG=true APP_URL=IP-Public from EC2
-
Edit DB_HOST on .env
DB_CONNECTION=mysql DB_HOST= Endpoint from RDS DB_PORT=3306 DB_DATABASE=library DB_USERNAME=root DB_PASSWORD=root1234
-
Build the Docker Image and Tag then Push the Docker Image to DockerHub
- Build the Docker Image:
docker-compose up --build -d
- Tag the Docker Image:
docker tag your-dockerhub-username/library-management-system your-dockerhub-username/library-management-system:your-tag
- Push the Docker Image to DockerHub
docker push your-dockerhub-username/library-management-system:your-tag
-
After Connect EC2 and RDS, Now Pull Image on EC2
sudo docker pull your-dockerhub-username/library-management-system:your-tag
-
Now you can write IP public with a port on any browser.