Skip to content

DirkMahler/dukecon_server

 
 

Repository files navigation

DukeCon Server

Build & Dependency Status

  • Build Status

  • Reactor: Dependency Status

  • API: Dependency Status

  • Impl: Dependency Status

REST Services

Talks

Accessible on /rest/conferences/499959. Data is being cached.

Data can be updated with URI /rest/conferences/update/499959. Therefor an authenticated request with role ROLE_ADMIN is needed.

Meta-Information

User-Preferences (Talk favorites)

User-Filter

  • Login with Keycloak
  • Filters will be persisted with a record of each principal in the DB
  • Write/save:
    • HTTP method PUT
    • URL http://localhost:8080/rest/filters
    • Content-Type: application/json
    • Payload: {"favourites":true,"levels":["Fortgeschritten"],"languages":["Englisch"],"tracks":["IDEs & Tools"],"locations":["Wintergarten", "Schauspielhaus"]}
  • Read:
    • HTTP method GET
    • URL http://localhost:8080/rest/filters

Health Check

Health check is available at /health URI.
HTTP status code 200 of the response tells you that everything is ok.

DB

  • H2 in development mode
    • In-Memory (jdbc:h2:mem:testdb)
    • DB console: http://localhost:8080/develop/h2-console/
  • PostgreSQL with profile "postgresql"
    • activate with -Dspring.profiles.active=postgresql
    • to run the tests against the PostgreSQL db (and a previously reset of the db), you need the "postgresql-test" profile (-Dspring.profiles.active=postgresql-test)

Dependency Management

  • Maven build fails in verify phase if declared dependencies are unused or used dependencies are undeclared
    • mvn verify
    • CI calls mvn deploy which includes verify
    • the acutal goal is mvn dependency:analyze(-only) which may show warnings
  • dependency analyzing may cause problems because of Spring Boot starter dependencies
    • configure in pom.xml

Development

Start org.dukecon.DukeConServerApplication from your IDE.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Groovy 83.1%
  • Java 16.4%
  • Other 0.5%