Skip to content

A library storage system made with C++ and MariaDB using mariadb-connector-C library

License

Notifications You must be signed in to change notification settings

LudwingArandiaa/library-storage-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Library Storage System 📚

This is a C++ terminal-based program that uses mariadb-connector-c with MariaDB to manage a library storage system. It allows users to register book loans and applies penalties for late returns.

📌 Features

  • Connects to a MariaDB database.
  • Registers book loans.
  • Manages penalties for overdue returns.
  • Command-line interface.

🚀 Requirements

Before running the program, make sure you have the following installed:

  • MariaDB (database and server)
  • MariaDB Connector/C
  • CMake and a C++ compiler (such as g++ or clang)

On Debian-based systems (like Ubuntu or Zorin OS), you can install them with:

sudo apt update
sudo apt install mariadb-server mariadb-client libmariadb-dev cmake g++

⚙️ Instalation

1. Clone this repository:

git clone https://github.com/LudwingArandiaa/library-storage-system.git
cd library-storage-system

2. Create the database by executing the included SQL script:

mysql -u root -p < database.sql

3.Compile the program:

g++ main.cpp -o main -lmariadb

4. Run the program:

./main

📬 Contact

Let me know if you'd like any modifications! 🚀

About

A library storage system made with C++ and MariaDB using mariadb-connector-C library

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •