A backend API service for ticket booking management built with Go and Fiber framework.
This project implements a RESTful API for managing events and ticket bookings. It follows a clean architecture pattern with separate layers for handlers, models, and repositories.
- Go 1.24.2
- Fiber - Web framework
- Clean Architecture Pattern
├── cmd/ # Command line applications
│ └── api/ # Main API entry point
├── handlers/ # HTTP request handlers
├── models/ # Domain models and interfaces
├── repositories/ # Data access implementations
└── bin/ # Compiled binaries
GET /api/v1/events
- Retrieve all eventsGET /api/v1/events/:eventId
- Retrieve a specific eventPOST /api/v1/events
- Create a new event
- Go 1.24.2 or higher
- Clone the repository
git clone https://github.com/TechmoNoway/golang-ticket-booking-backend.git
cd golang-ticket-booking-backend
- Install dependencies
go mod download
Use the included Makefile to build and start the application:
make start
This will compile the application and start the server on port 4242.
make build
MIT