Network course - Tornado - Mysql
This is Ticket Management system using Tornado Web server.
Version : 1.0
Build : Passing
Author : bahar boroomand
Language : Python 3.6.5
For This Project You Need below Requirements :
- python
- mysql
$ apt install python mysql
In Windows You Also Need:
- Anaconda
For runnig server.py/client.py file You Need to install below pakcage for python :
- tornado
- mysql-connector
$ python -m pip install mysql-connector tornado
First of All Clone the Project :
$ git clone https://github.com/bahar99/Ticket.git
Connect to MySQL as a user that can create databases and users:
$ mysql -u root
Create a database named "ticket":
mysql> CREATE DATABASE ticket;
Create 2 tables Like below:
With the default user, password, and database you can just run:
$ python server.py
Now For Sending Requests You Have 2 Options :
- Postman
- My Client Code
Download and install Postman.
In MY Project I Support Both POST & GET Method for Requesting.
You Can See Example Below :
post:
get:
Just Go To Client Folders and Run Below Code :
$ pip install requests
$ python client.py
Reach out to me at following place! *Yahoo at boroomand.bahar@yahoo.co.uk