Welcome to the CinemaTix Backend Web Project! This repository contains the back-end source code for an online movie ticket booking application. With Go programming language and using Gin-Gonic structure.
You can choose your favorite movie, time, and seat, and make payments safely and conveniently. CinemaTix also provides complete information about movies and theaters, real-time theater layouts, barcode tickets.
- Complete Film Information and Bioskop Schedule.
- Choose films, dates, times, and seats conveniently.
- Efficient and User-Friendly Booking Process
- View nationwide cinema schedules and seat layouts.
- Access trailers, synopses, ratings, and cast details.
Built using
To run the project locally, follow these simple steps:
- Clone this repository
git clone https://github.com/putragabrielll/fwg17-cinematix-be
cd fwg17-cinematix-be
- Open in VSCode
code .
- install all the dependencies
go mod tidy
- run the project
go run .
To run this project, you will need to add the following environment variables to your .env file
DATABASE_CONNECT
APP_SECRET
CLOUDINARY_CLOUD_NAME
CLOUDINARY_API_KEY
CLOUDINARY_API_SECRET
POST /auth/login
POST /auth/register
Parameter | Type | Description |
---|---|---|
/customer/profile |
GET |
Get a profile data |
/customer/profile |
PATCH |
Update a profile data |
/customer/payment-info |
GET |
Get a payments data |
/customer/history-order |
GET |
Get a history order |
/customer/history-order/ticket?orderId= |
GET |
Get a tickets |
/customer/payment-method |
GET |
Get list all payment method |
/customer/create-order |
POST |
Create orders |
/customer/update-paid-status/:orderId |
POST |
Update paid status |
Parameter | Type | Description |
---|---|---|
/movies |
GET |
Get a list of movie data |
/movies/:id |
GET |
Get a detailed movie data |
/movie-time |
GET |
Get a movie time |
/airing-time-date |
GET |
Get airing time date |
/movie-time-id |
GET |
Get movie time ID |
/airing-time-date-id |
GET |
Get airing time date ID |
/movie-cinema/:movieId |
GET |
Get movie cinema |
/cinema-location/:cinemaid |
GET |
Get cinema location |
Gin-Gonic: a fast and minimalist web framework, this effort is dedicated to creating fast as well as resilient and scalable server-side applications.
Go: Go serves as the foundation for this project, utilizing a non-blocking and event-driven architecture to ensure scalable and high-performance server-side application development.
The project structure is organized as follows:
- src/: contains the source code of the project.
- asset/: image and icon media.
- components/: Reusable component used throughout the project.
- pages/: Individual pages of the application.
Contributions are always welcome!
If you have any feedback, please create new issue.