A simple ticket management API built with FastAPI.
Clone the repository:
git clone https://github.com/yourusername/ticketmaster.git
Install dependencies using pdm
cd ticketmaster
pdm install
Run tests using pytest:
pdm run pytest --cov=./app --cov-report=term --cov-fail-under=70 -vvv tests
Running the Project with Docker Compose Prerequisites:
Build and run the application. This command will start the FastAPI server and any other services defined in your docker-compose.yml:
docker-compose up --build
detached mode
docker-compose up --build -d
Accessing the application Open a web browser and navigate to:
http://localhost:8000
Stopping the application
To stop the services, simply press CTRL+C in the terminal where docker-compose up is running.
Alternatively, you can run:
docker-compose down
Notes: The Docker Compose setup is suitable for development purposes. For deploying in production, you may need additional configurations and optimizations.
If you modify the code or add new dependencies, you might need to rebuild the Docker image. You can do this using the docker-compose up –build command.
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.