Simple Flask app with a MySQL database. This application is intended to serve as a Library Management System (LMS) for a local community library.
This repo includes:
- A Flask app that serves the library backend.
- A MySQL database for storing Books, Loans, Users etc.
- An HTML form served at
localhost:8000
that lets you perform operations like adding new books to the database.
- Build and run the services:
docker-compose up --build
-
Access the app by visiting
http://localhost:8000
. -
Add a book via the form on the page. The book details will be inserted into the MySQL
Books
table.
This setup uses docker-compose
to spin up the MySQL container and the Flask app. The db/init.sql
script automatically sets up the Books
table inside the MySQL container when it's first started.