Skip to content

Latest commit

 

History

History
108 lines (66 loc) · 3.15 KB

README.md

File metadata and controls

108 lines (66 loc) · 3.15 KB

Pet Shop


A simple pet shop web application.

Table of Contents

🔹 What The Application Can Do

🔹 Dependencies

🔹 How to Run the Application

🔹 Entity-relationship Diagram

What the Application Can Do

✔️ List, create, edit, and delete products;

✔️ List, create, edit, and delete categories;

✔️ Show contact us page with contact form;

✔️ Show about page with developers info;

✔️ Show a home page with the differentials of our pet shop.

Dependencies

This application was made to run with Docker, and the how to run instructions is written to be used with it, so just use Docker, because everything you need will be installed on the containers. But if you want to run this project without Docker anyway, you can use a WampServer or similar:

⚠️ PHP 8.3

⚠️ MySQL 8

⚠️ Apache

⚠️ Libpq-dev 17

⚠️ PDO MySQL

How to Run the Application

After configuring Docker, clone this repository:

git clone https://github.com/ruliancruz/calendario-simples.git

After that, all you need to do to run the application is starting Docker containers:

docker compose up --build

It will start test container too, if want only the main application, run it instead:

docker compose up --build app

Now you can access the application through http://localhost:8000/ route.

How to Set Up the Database

The database container will start without a database created, so you will need to run scripts to create and migrate it.

First, with the application container running, run a bash on it:

docker exec -it app bash

After that, run the reset script inside the container:

php database/scripts/reset.php

You can instead recreate database or run migrations separately if you want.

To recrate run:

php database/scripts/recreate.php

To migrate run:

php database/scripts/migrate.php

Entity-relationship Diagram

Entity-relationship diagram