Skip to content

SkiSlope Project description (ENG)

danifoj315 edited this page Jul 15, 2022 · 1 revision

REST API of the student project responsible for operating the ski station..

Project description

The project enables the operation of a ski station by providing the necessary functionalities. The functionalities are provided by three applications:

  • website (ReactJS),
  • mobile application (Flutter),
  • QR code scanner - ski gate (Unity). All components are connected to each other via REST API included in this repository.

Key functionalities of the project

  • Login and user registration,
  • Authentication with Google account,
  • Ability to purchase a tickets using the payment system,
  • Scanning of tickets,
  • Generating reports.

Use case diagram

Diagram showing the use cases necessary for the project to work. The backend also implements functionality that is not shown in the diagram below.

Database schema (MySQL)

A database schema created in MySQL.

Endpoints

Endpoints of the application shown based on a screenshot from the Postman application.

Sample payment API documentation: link

Description of the implementation of the most important functionalities - Backend

Authorization and authentication of local users

User authentication is done through JWTs that the user obtains during the authentication process. During authentication, the user also obtains a refresh token to extend the life of the access token.

Google Authentication

Google user authentication is done through Spring Security. The flow of the user login process through Google is shown below.

Connection to the payment system

Payments for tickets and passes are made entirely through payPal.

Generating reports

Reports are generated using JasperReport. There are two types - reports for clients and administrators. An example of a report generated for a client:

Technologies used to create the Backend:

  • Java,
  • Spring Boot,
  • Spring Security,
  • Spring Data,
  • Hibernate,
  • Lombok,
  • MySQL,
  • PayPal API,
  • JasperReport.

Useful applications for creating Backend:

  • Postman,
  • Github,
  • Swagger,
  • Trello.