Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mglsj authored Mar 18, 2022
1 parent eaadae9 commit 5a5b1b7
Showing 1 changed file with 10 additions and 25 deletions.
35 changes: 10 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,34 +24,15 @@ pip install pymysql
```sh
pip install pillow
```

Or run “modules.bat” in prerequisites folder

<h3>MySQL Requirements</h3>

Database with two tables:
- Book table
- Issue table

Or run these 4 commands in MySQL Commandline Client one by one:
```sql
create database db;
use db;
create table books(bid varchar(20) primary key, title varchar(30), author varchar(30), status varchar(30));
create table books_issued(bid varchar(20) primary key, issuedto varchar(30));
```
- Cryptography
```sh
pip install cryptography
```
<h3>Authentication</h3>

Put your MySQL connection details on the credentials.txt in the following format:
```
HOST
USER
PASSWORD
DATABASE NAME
```
Do not change anything if using defaults in MySQL.
Enter your MySQL connection details on the credentials window

![image](https://user-images.githubusercontent.com/73988826/133984139-50a13548-b3f9-46fb-8108-d6b248799ac1.png)
![image](https://user-images.githubusercontent.com/73988826/159003211-150d1e6d-837b-416e-a6ab-99f5183d74af.png)

<h3>How to Launch</h3>

Expand All @@ -60,3 +41,7 @@ Click on launch.bat
<b>OR</b>

Open main.py in a python compiler of choice.

<b>OR</b>

Click on run.exe

0 comments on commit 5a5b1b7

Please sign in to comment.