This is the backend API for the Survey application, built with Spring Boot and PostgreSQL.
- 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
- Java 17
- Spring Boot 3
- Spring Data JPA
- PostgreSQL
- Maven
- Spotless (code formatting)
Backup script that runs daily at 3 AM. Backups are saved 31 days in the past.
docker compose exec db-backup /backup.sh./mvnw clean verify ./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./mvnw spotbugs:check
./mvnw spotless:apply