JWT-based API for the React Native app. Ships with H2 + seed data.
./mvnw spring-boot:run
# or: mvn spring-boot:run
Swagger UI: http://localhost:8080/swagger-ui.html
- Users:
- demo@user.com / demo123 (ROLE_USER)
- agent@agency.com / agent123 (ROLE_AGENT)
POST /api/auth/login
->{ accessToken, refreshToken, tokenType, expiresIn }
GET /api/listings?q=&city=&minPrice=&maxPrice=&beds=&page=&size=
GET /api/listings/{id}
GET /api/listings/near?lat=&lng=&radiusKm=
POST /api/appointments
(Bearer token required)
- React Native
.env
:
USE_MOCKS=false
API_BASE_URL=http://localhost:8080
- Android emulator base URL is
http://10.0.2.2:8080