Skip to content

amplimindcc/backend

Repository files navigation

Needed software

  • Docker
  • JDK21

Run the application

  • Run CodingChallengeApplication#main

Linting

This project uses Klint to format the code and check for formatting errors.

Run the following gradle task in order to run the linter:

img_2.png

Wildcard imports

The linter will abort with an error if wildcard imports are used. Sadly intellij does those import automatically. To fix this, go to the settings and search for "Imports" and disable the option "Use single class import".

img_3.png

See all the endpoints

Toubleshooting

Postgres

Fehler: Caused by: org.postgresql.util.PSQLException: FATAL: password authentication failed for user "postgres"

Behebung (Windows):

  • Win + R
  • services.msc eingeben und Enter drücken
  • Nach postgres suchen img.png
  • Rechtsklick -> Eigenschaften
  • Disablen und Stoppen: img_1.png
  • Backend neustarten

Docker (Backend):

  • in den application.properties die Properties unter Enable for development auskommentieren/deaktivieren
  • in den application.properties die Properties unter Enable for image build einkommentieren/aktivieren
  • gradle clean laufen lassen
  • gradle bootJar laufen lassen
  • Im Hauptordner, wo sich Dockerfile befindet, Terminal öffnen
  • Docker für Desktop muss laufen
  • docker-compose up
  • application.properties zurücksetzen

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published