Skip to content

Latest commit

 

History

History
50 lines (39 loc) · 984 Bytes

File metadata and controls

50 lines (39 loc) · 984 Bytes

🧠 Survey App - Backend

This is the backend API for the Survey application, built with Spring Boot and PostgreSQL.

🚀 Features

  • Expose surveys via /surveys/:id
  • Submit anonymous responses
  • Retrieve aggregated survey results at /surveys/:id/results
  • Auto-creates 3 default surveys on application startup
  • PostgreSQL persistence using Spring Data JPA

Technologies

  • Java 17
  • Spring Boot 3
  • Spring Data JPA
  • PostgreSQL
  • Maven
  • Spotless (code formatting)

Backups

Backup script that runs daily at 3 AM. Backups are saved 31 days in the past.

docker compose exec db-backup /backup.sh

Running Tests

./mvnw clean verify

Run the CLI

    ./mvnw spring-boot:run -Dspring-boot.run.profiles=shell
    ## write help to see available commands
    ## or in the server
    java -jar app.jar --spring.profiles.active=shell

Spotbugs

./mvnw spotbugs:check

Format the code

./mvnw spotless:apply