- BankingSystem-Simulator is a Toy-project for learning & fun, combining both of qt with MySQL database server and showing how we can combine both of them in one project.
- This project was built using Linux OS, so you will mantain any differences faced in case of using another operating systems like Windows or Mac. Since qt is a crossplatform framework so there will be no problems with the GUI, the diffrences you may face will be concerning MySQL database server.
- The Code is commented making it easy keeping up with and clearing any ambiguity might be faced.
- Screenshots:
![c](https://camo.githubusercontent.com/aeef860ce8c7639590fe93bcfbdca6a70aec7134d6105ffcd1d60baad6470d1c/68747470733a2f2f696d6167652e6962622e636f2f6b634f4f41462f632e706e67)
![b](https://camo.githubusercontent.com/aa4555f59eba6496b69503b768d1d691d6b1b12f026dbef06897b438a00f64ed/68747470733a2f2f696d6167652e6962622e636f2f646664656a612f622e706e67)
- After the installation of MySQL server, run it.
mysql -u USERNAME -p PASSWORD
- Create your database then use it.
mysql> CREATE DATABASE bank;
mysql> use bank;
- Populate your database with some fake Data. Run banking_mysql.sql file which will create the tables for you and will insert 1000 entry.
mysql> source FILEPATH/banking_mysql.sql
- Now your DataBase is up and running.
- Open the main.cpp file, then edit the database parameters.
DataBaseManager db("QMYSQL", "localhost", "DB_NAME", "YOUR_DB_USERNAME" ,"DB_PASSWORD" ); // Establishing connection with mysql DB.
"DB_NAME" ---> The name of the database in MySQL server which we created before : "bank".
"YOUR_DB_USERNAME" ---> Your username of MySQL server.
"DB_PASSWORD" ---> Your password of MySQL server.
- Build the project using Qt creator or using qmake command from the terminal then run it.