Skip to content

IbrahimKhalid11/Library-Project-using-Laravel-with-AWS-Service

Repository files navigation

Library Project using Laravel, connected with EC2 and RDS

Introduction

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

Features

  • Book add, editing, and deletion
  • Make Invoice
  • Monitoring invoice records
  • EC2 and RDS connection

Installation

  1. Clone the repository:

    https://github.com/IbrahimKhalid11/Library.git
    
  2. 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
    
  3. 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
    
  4. 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
  5. After Connect EC2 and RDS, Now Pull Image on EC2

        sudo docker pull your-dockerhub-username/library-management-system:your-tag
  6. Now you can write IP public with a port on any browser.

License

MIT License

Releases

No releases published

Packages

No packages published

Languages