Skip to content

putragabrielll/fwg17-cinematix-be

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CinemaTix-be

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.

Features

  • 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

JWT Nodemon Go gin-gonic Postgres Supabase Google Chrome Visual Studio Code Postman

📌 Getting Started

To run the project locally, follow these simple steps:

  1. Clone this repository
  git clone https://github.com/putragabrielll/fwg17-cinematix-be
  cd fwg17-cinematix-be
  1. Open in VSCode
  code .
  1. install all the dependencies
  go mod tidy
  1. run the project
  go run .

Environment Variables

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

API Reference

Login

  POST /auth/login

Register

  POST /auth/register

Customer API

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

Global API

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

Technologies Used

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.

✍️ CinemaTix - Frontend Repository

Front End Cinematix

Technologies Used

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.

Contributing

Contributions are always welcome!

Authors

Feedback

If you have any feedback, please create new issue.

-