Assignment 1 - Docker
app | ||
prepare-app.sh | ||
README.md | ||
remove-app.sh | ||
start-app.sh | ||
stop-app.sh |
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
- Clone the repository:
git clone <repository_url> cd z1
- Prepare the application:
./prepare-app.sh
- Start the application:
./start-app.sh
- 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.