|
1 | | -# Library Manager (python, SQL, and tkinter) |
| 1 | +<h1 align="center"> Library Manager (python, SQL, and tkinter)</h1> |
2 | 2 |
|
3 | 3 | AVBIL Library Manager |
4 | | -Software Requirements: |
5 | | - • Python 3.x |
6 | | - • MySQL |
7 | | - • Pip (To install modules) |
8 | | - |
9 | | -Python (Required Modules) |
10 | | - • Tkinter ( pip install tk ) |
11 | | - • PyMySQL ( pip install pymysql ) |
12 | | - • Pillow ( pip install pillow ) |
| 4 | +------------- |
| 5 | + |
| 6 | + |
| 7 | +<h3>Software Requirements:</h3> |
| 8 | + |
| 9 | +- Python 3.x |
| 10 | +- MySQL |
| 11 | +- Pip (To install modules) |
| 12 | + |
| 13 | +<h3>Python (Required Modules)</h3> |
| 14 | + |
| 15 | +- Tkinter |
| 16 | +```sh |
| 17 | +pip install tk |
| 18 | +``` |
| 19 | +- PyMySQL |
| 20 | +```sh |
| 21 | +pip install pymysql |
| 22 | +``` |
| 23 | +- Pillow |
| 24 | +```sh |
| 25 | +pip install pillow |
| 26 | +``` |
| 27 | + |
13 | 28 | Or run “modules.bat” in prerequisites folder |
14 | 29 |
|
15 | | -MySQL Requirements |
16 | | - • Database with two tables: Book table and Issue table |
| 30 | +<h3>MySQL Requirements</h3> |
| 31 | + |
| 32 | +Database with two tables: |
| 33 | +- Book table |
| 34 | +- Issue table |
| 35 | + |
17 | 36 | Or run these 4 commands in MySQL Commandline Client one by one: |
18 | | - create database db; |
19 | | - use db; |
20 | | - create table books(bid varchar(20) primary key, title varchar(30), author varchar(30), status varchar(30)); |
21 | | - create table books_issued(bid varchar(20) primary key, issuedto varchar(30)); |
| 37 | +```sql |
| 38 | +create database db; |
| 39 | +use db; |
| 40 | +create table books(bid varchar(20) primary key, title varchar(30), author varchar(30), status varchar(30)); |
| 41 | +create table books_issued(bid varchar(20) primary key, issuedto varchar(30)); |
| 42 | +``` |
| 43 | +<h3>Authentication</h3> |
22 | 44 |
|
23 | | -Authentication |
24 | 45 | Put your MySQL connection details on the credentials.txt in the following format: |
25 | | - HOST |
26 | | - USER |
27 | | - PASSWORD |
28 | | - DATABASE NAME |
| 46 | +``` |
| 47 | +HOST |
| 48 | +USER |
| 49 | +PASSWORD |
| 50 | +DATABASE NAME |
| 51 | +``` |
29 | 52 | Do not change anything if using defaults in MySQL. |
30 | 53 |
|
| 54 | + |
| 55 | + |
31 | 56 | How to Launch |
32 | 57 | Click on launch.bat |
33 | 58 | OR |
|
0 commit comments