This is a simple CLI based library management system made using python and PostgreSql for databse and SQLAlchemy for ORM. It incooperate some of the knowledge of OOP and SQLAlchemy.
SqlAlchemy is an ORM which is used to represent out databse(Postgres in this case) as objects and classes. SqlAlchemy not only provide the ORM but can also be used as a query builder.
-
Clone the repo.
git clone https://github.com/Rohanpudasaini/library_management_system/tree/master
-
Move to the folder
cd library_management_system
-
Mov to the databse_connection folder
cd databse_connection touch .env
-
Make your .env file
The env file must be something like this, please change it according to your database's information.
host=hostaddress database=databse user=username password=password
-
Move back to the main folder and run the app
Run the cli app by running
python3 libraryWizard.py
.
Enjoy