Skip to content

cameron-zwane/Bean-Tastic-API

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bean-Tastic-API

API for the BeanTastic Game.

Technologies Used

  • Git and GitHub: Source control
  • GitHub Actions: CI/CD pipeline
  • Spring boot: End points, link to database
  • Lombok: Annotations to generate getters, setters and constructors
  • Jakarta: Relational DB mapper

How it is structured

  • The controllers folder contains three RestController for each of the core classes (Items, BeanClass and Enemy). They each contain an endpoint which returns a list of objects of their respective types.
  • The dao folder contains the three repositories (JPARepository) for each of the core classes.
  • The models folder contains two sub folders.
    • Within the dto folder the three class types returned by the controllers can be found.
    • Within the entities folder the classes corresponding to the tables in the database can be found.
  • The utils folder contains a DTOConverter.java file which contains static methods to transform the classes into their DTO versions.

How to run

  • Ensure the application.properties file located in the resources folder is configured (through the secrets) to correctly point to your database.
  • The application can then be started by running the ApiApplication.java file

Secrets Set-Up

  • AWS_RDS_ENDPOINT
  • AWS_REGION
  • AWS_ROLE
  • DB_PASSWORD
  • DB_PORT
  • DB_USERNAME

About

API for the BeanTastic Game.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 71.7%
  • HCL 28.3%