- Java 21
- Docker Desktop
- Maven (or use
./mvnw)
- Clone the repo
git clone <your-repo-url>
cd Nbat-project-backend- Set up environment variables
cp .env.example .env-
Edit
.envand fill in YOUR Auth0 credentials- Go to https://manage.auth0.com/dashboard/us/dev-1m8rc8rkauzkk7c6/applications
- Copy your client ID and secret
- Paste into
.env
-
Start PostgreSQL
docker-compose up -d- Run the application
./mvnw spring-boot:run- Verify it works
- Backend: http://localhost:8080
- Database: localhost:5432
"Auth0 credentials not found"
→ Make sure you copied .env.example to .env and filled in values
"Database connection failed"
→ Make sure Docker is running: docker-compose ps
"Port 8080 already in use"
→ Change SERVER_PORT=8081 in your .env