Spring Boot Backend
Complete guide to setting up and configuring your Spring Boot backend service.
Authentication
JWT-based auth with refresh tokens & BCrypt hashing.
PostgreSQL
JPA/Hibernate & Flyway migrations included.
REST API
OpenAPI docs & CORS configured for mobile.
Quick Start
Prerequisites
Java 21 LTS
Maven 3.9+
Postgres 15+
Docker
1. Start Database
Terminal
docker-compose up -d postgres
2. Run Application
Terminal
mvn clean install mvn spring-boot:run
Server starts on http://localhost:8080
API Endpoints
POST
/api/auth/registerRegister userPOST
/api/auth/loginGet tokensGET
/api/user/profileGet profile