Assignment 1 - Docker
Go to file
2025-03-16 10:21:05 +00:00
app Add folders 2025-03-16 10:21:05 +00:00
prepare-app.sh Téléverser les fichiers vers "/" 2025-03-16 10:19:36 +00:00
README.md Actualiser README.md 2025-03-16 10:20:08 +00:00
remove-app.sh Téléverser les fichiers vers "/" 2025-03-16 10:19:36 +00:00
start-app.sh Téléverser les fichiers vers "/" 2025-03-16 10:19:36 +00:00
stop-app.sh Téléverser les fichiers vers "/" 2025-03-16 10:19:36 +00:00

My Blog Application

Description

This is a blog application where users can add and delete articles easily. The application consists of a form to add articles on the left side and a list of existing articles on the right side.

Features

  • Add a new article by entering a title and content.
  • View all articles in a clean and structured layout.
  • Delete an article with a single click.

Installation & Setup

Requirements

  • Docker
  • Docker Compose

Steps to Run the Application

  1. Clone the repository:
    git clone <repository_url>
    cd z1
    
  2. Prepare the application:
    ./prepare-app.sh
    
  3. Start the application:
    ./start-app.sh
    
  4. Open a web browser and go to:
    http://localhost:5000
    

Stopping the Application

To stop the application, run:

./stop-app.sh

Removing the Application

To completely remove all data and configurations, run:

./remove-app.sh

Technology Stack

  • Backend: Flask (Python)
  • Database: PostgreSQL
  • Frontend: HTML + CSS (Embedded in Flask)
  • Containerization: Docker & Docker Compose

How It Works

  • When an article is added, it is stored in a PostgreSQL database.
  • The articles are displayed dynamically on the page.
  • The delete button allows users to remove articles from the database.