For successfully completing this task create a rudimentary event ticket managementsolution. The overall goal is to be able to create events and manage the number of people accessing each event.
This project was developed with the following technologies:
- Back-End
- Python
- Pytest
- Pylint
- Alembic
- Black
- SQLAlchemy
- SQLite
- Coverage
- Docker 🐋
Cloning repository
$ git clone https://github.com/Vitorrrocha/ticketManagement.git && cd ticketManagement
$ docker pull vitorrocha1228/ticket-management:ticket-management # docker repository
$ docker run -d -p 3000:3000 ticket-management:ticket-management
Installing dependencies
$ python3 -m venv venv
$ source venv/bin/activate
$ pip3 install -r requirements.txt
$ alembic upgrade head # to add the migrations and the database
!! Before start please populate the database !!
Getting Started
$ flask --app ticket.manage --debug run
Or you can use the configuration bellow at your launch.json
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
// flask --app ticket.manage run
"version": "0.2.0",
"configurations": [
{
"name": "Python: Flask",
"type": "python",
"request": "launch",
"module": "flask",
"env": {
"FLASK_APP": "ticket.manage.py",
"FLASK_DEBUG": "1"
},
"args": [
"run",
"--debugger",
"--reload"
],
"jinja": true,
"justMyCode": true
}
]
}
GET /redeem/<ticketIdentifier>
200 OK: If the ticket is OK.
410 GONE: If the ticket has been redeemed.