2024-05-01 19:46:02 +00:00
|
|
|
# Imgur Clone Overview
|
2024-04-22 22:14:21 +00:00
|
|
|
|
2024-05-02 19:41:22 +00:00
|
|
|
|
|
|
|
<p align="center">
|
2024-05-02 19:51:25 +00:00
|
|
|
<img src="https://github.com/toddehalexander/Imgur-Clone/blob/main/assets/usecase.gif" alt="Your GIF">
|
2024-05-02 19:41:22 +00:00
|
|
|
</p>
|
|
|
|
|
2024-05-01 19:46:02 +00:00
|
|
|
## How to Run
|
|
|
|
|
2024-05-02 20:51:37 +00:00
|
|
|
1. Navigate to the `src` folder of **this** project in your terminal:
|
2024-05-01 19:46:02 +00:00
|
|
|
```
|
2024-05-02 20:51:37 +00:00
|
|
|
cd path/to/src
|
2024-05-01 19:46:02 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
2. Run the following command to start the Docker containers:
|
|
|
|
```
|
|
|
|
docker compose up
|
|
|
|
```
|
|
|
|
|
|
|
|
3. Once the containers are up and running, you can access the services using the following URLs:
|
|
|
|
- PHP Runtime Service: [http://localhost:8000](http://localhost:8000)
|
|
|
|
- Adminer: [http://localhost:8080](http://localhost:8080)
|
|
|
|
|
|
|
|
4. Use the following login information to access Adminer and see the database of files:
|
|
|
|
- **Server**: `database`
|
|
|
|
- **Username**: `root`
|
|
|
|
- **Password**: `root`
|
|
|
|
|
|
|
|
5. After logging into Adminer, follow these steps:
|
|
|
|
- Click on `image_database` from the list of databases.
|
|
|
|
- Click on `image_table` from the list of tables.
|
|
|
|
- Select `Select data` to see the uploaded files information.
|
|
|
|
|
2024-05-02 19:57:41 +00:00
|
|
|
## Service Ports
|
|
|
|
|
|
|
|
### PHP Runtime Service
|
|
|
|
|
|
|
|
- **Container Port**: 8000
|
|
|
|
- **Host Port**: 8000
|
|
|
|
- **Description**: Exposes the PHP runtime environment for hosting PHP web applications.
|
|
|
|
|
|
|
|
### Database Service (MySQL)
|
|
|
|
|
|
|
|
- **Container Port**: 3306
|
|
|
|
- **Host Port**: 3306
|
|
|
|
- **Description**: Exposes the MySQL database server for storing and managing application data.
|
|
|
|
|
|
|
|
### Adminer Service
|
|
|
|
|
|
|
|
- **Container Port**: 8080
|
|
|
|
- **Host Port**: 8080
|
|
|
|
- **Description**: Exposes Adminer, a web-based database management tool, for interacting with the MySQL database through a web interface.
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-05-07 17:24:22 +00:00
|
|
|
*To be continued*
|