clone the repo
git clone https://github.com/RaoufGhezal/spring-auth-system
cd spring-auth-systemdocker run --name spring-auth-db -e POSTGRES_DB=spring_auth_db -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=postgres -p 5432:5432 -d postgrescreate this file:
/server/src/main/resources/application-local.propertiesadd your environment variables:
DB_URL=jdbc:postgresql://localhost:5432/spring_auth_db
DB_USERNAME=postgres
DB_PASSWORD=postgres
JWT_SECRET=your-secret-keymake sure your application uses the local profile:
spring.profiles.active=local(you can place this in application.properties)
open client api file:
/client/src/services/api.tsset backend endpoint:
const baseURL = "http://localhost:8080"cd client
npm install
npm run devcd server
./mvnw spring-boot:run
