Library system simulation using relational databases made for AGH University classes. t is written in Python and uses SQLAlchemy as the Object Relational Mapper (ORM) for database management. The Projects uses Google Books Dataset from kaggle.com
The system allows users to issue books, return them, and also has a login system for students and teachers.
- Issue books
- Return books
- Login system for students and teachers
- Monitor the flow of books in the admin panel
- Clone this repository:
git clone https://github.com/kcbojanowski/Database_Library
- Change directory to the project directory:
cd library-system-simulation
- Create a virtual environment and activate it:
- On Windows:
python -m venv venv
venv\Scripts\activate
- On macOS/Linux:
python3 -m venv venv
source venv/bin/activate
- Install the required packages:
pip install -r requirements.txt
- Set up the database by running:
python csv_to_db.py
- Run the application:
python app.py
Once the application is running, open a web browser and navigate to http://localhost:5000 to access the application.
To run tests, run the following command:
python -m unittest tests/tests_multi_access.py
or:
python -m unittest tests/tests_wrong_input.py
This project is licensed under the MIT License. See the LICENSE file for more information.