- Build and create jar
./gradlew clean bootJar- Start docker compose
docker compose -f docker/docker-compose.yml up --buildNote: This will create two Docker instances in your Docker desktop:
- postgres
- springboot-app
- Debug application
To debug the application, STOP the docker container of the application, springboot-app. Do not stop the container of the postgres. Start the application from your IDE.
- Stop docker compose
cd docker
docker compose down- List resources in docker container docker exec -it wcc-backend ls -al /app/resources
- Install fly.io
- Login
fly auth loginor create accountfly auth signup - build create jar:
./gradlew clean bootJar - First deploy
fly launch
- build create jar:
./gradlew clean bootJar - Update deploy
fly deploy - Check application log during deployment:
fly logs -a wcc-backend - Access the application here
- Check application status:
fly status -a wcc-backend
After deploying, verify the authentication endpoint is working correctly:
curl -X 'POST' \
'https://wcc-backend.fly.dev/api/auth/login' \
-H 'accept: */*' \
-H 'Content-Type: application/json' \
-d '{
"email": "your-email@example.com",
"password": "your-secure-password"
}'Note: Replace your-email@example.com and your-secure-password with valid admin credentials configured in your fly.io environment.
Expected response:
{
"token": "generated-jwt-token",
"expiresAt": "2025-11-16T10:48:50.992574288Z",
"roles": ["ADMIN"]
}A successful response confirms:
- Backend is running on fly.io
- Database connectivity is working
- Authentication system is functioning properly
- CORS configuration is correct