File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# QR Code Ticket
22
3- This service generates a unique qr code for each registered user and also provides a qr reader for the receptionist to verify each ticket powered by Fastapi
3+ This service generates a unique qr code for each registered user and also provides a qr reader for the receptionist to
4+ verify each ticket powered by Fastapi
45
56## Screenshot
67
7- ![ ticket] ( ticket.png )
8+ | Ticket | Qr scanner |
9+ | -----------------------| -------------------------------|
10+ | ![ ticket] ( ticket.png ) | ![ qr scanner] ( qr_scanner.png ) |
811
912## Getting Started
13+
1014Clone repository
15+
1116``` bash
1217git clone https://github.com/sadjadeb/qrCode_ticket.git
1318```
1419
1520### Prerequisite
21+
1622Create an environment to run the app
23+
1724``` bash
1825cd qrCode_ticket/
1926sudo apt-get install virtualenv
2027virtualenv venv
2128source venv/bin/activate
2229```
30+
2331Install required libraries
32+
2433``` bash
2534pip install -r requirements.txt
2635```
36+
2737\
2838Rename sample_config to config and replace mock data with valid ones
2939
3040## Run
3141
3242Run the following command to start the webserver
43+
3344``` bash
3445python main.py run_webserver
3546```
3647
3748Run the following command to add ticket ids and links for registered users
49+
3850``` bash
3951python main.py generate_ticket_link
4052```
53+
4154\
42- Now open the base url and pass the specified user's ticket_id as a query parameter to see the ticket
55+ Now open the base_url/ticket/ ticket_id to see the ticket
4356
44- For the receptionist, get the /reception endpoint and enter the password to open the QR code reader
57+ For the receptionist, get the /reception endpoint and enter the password to open the QR code reader and verify the ticket
4558
4659## Contributing
60+
4761Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
4862
4963Give a ⭐️ if you like this project!
5064
5165## License
66+
5267[ MIT] ( https://github.com/sadjadeb/qrCode_ticket/blob/master/LICENSE )
You can’t perform that action at this time.
0 commit comments