Skip to content

rKlauss/cgi-backend

Repository files navigation

CGI home assignment

This is a web application that allows users to select seats for a flight. The app provides price filtering and automatic recommendations.


Features

  • Seat Selection – Users can choose available seats from a visual seating layout.
  • Business & Economy Class – Differentiation between business and economy class seats.
  • Seat Booking – Users can book selected seats.
  • Seat Filtering – Users can filter seats based on:
    • Window seats (all 'A' and 'F' row seats)
    • Extra legroom (Business class and third row seats)
    • Near exit (first two and last rows)

Technologies Used

Frontend

  • Vite Framework
  • Tailwind CSS
  • Axios
  • Docker

Backend

  • Spring Boot 3
  • Java 21
  • Spring Data JPA
  • PostgreSQL
  • Lombok
  • Docker

Getting Started

Prerequisites

  • Java 21
  • Gradle
  • PostgreSQL
  • Docker

Installation

  1. Clone the repository:
    git clone https://github.com/rKlauss/cgi-backend.git
    cd cgi-backend
    git clone https://github.com/rKlauss/cgi-frontend.git
    cd cgi-frontend

Docker Setup

  1. Navigate to frontend folder and run:
docker build -t cgi-frontend .
  1. Navigate to backend folder and Run with Docker Compose:
docker-compose up --build

Testing

  1. Go to http://localhost:5173
  2. Customer can choose between 4 Citys.
  3. User can test using locations, price range, date time and without any filters user can press "Search Flights" to view all flights.
  4. Choose flight and book as many seats as needed.
Citys
Tallinn
Saaremaa
Sofia
Helsingi

Author

Rasmus Klaus

About

CGI homework assignment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors