Skip to content

Latest commit

 

History

35 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ticket Management Api 🎫

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.

🚀 Technologies

This project was developed with the following technologies:

  • Back-End
    • Python
    • Pytest
    • Pylint
    • Alembic
    • Black
    • SQLAlchemy
    • SQLite
    • Coverage
    • Docker 🐋

Available Scripts 💻

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
        }
    ]
}

My task

Request:

    GET /redeem/<ticketIdentifier>

Response:

200 OK: If the ticket is OK.

410 GONE: If the ticket has been redeemed.

About

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 peopleaccessing each event.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages