Should have the following content
OAUTH_CLIENT_SECRET=secret
OAUTH_BASE_URL=http://localhost:9000/auth-server
NEXTAUTH_SECRET=secret
NEXTAUTH_URL=http://localhost:3000/api/auth
RECAPTCHA_SITE_KEY=6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI
NEXT_PUBLIC_KMEANS_BACKEND_URL=http://localhost:8000/k-means
SPRING_BACKEND_BASE_URL=http://localhost:8080/backend-spring-boot
Value for RECAPTCHA_SITE_KEY is a dev value.
./gradlew -p auth-server bootRuncd next-appnpm cinpm run devNext app will now be available on http://localhost:3000
Username/password for logging in with OAuth:
- user1
- password
./gradlew -p backend-spring-boot bootRuncd backend-pythonpoetry installpoetry run uvicorn src.app:app --reloadThe OpenAPI documentation for the API is available at the following URL:
You can use this interface to explore and interact with the API endpoints, view their descriptions, and test requests directly from the UI.
http://localhost:8080/backend-spring-boot/graphiql
mutation {
createCalculation(
firstValue: 1,
secondValue: 2,
operation: PLUS
) {
id
firstValue
secondValue
operation
result
username
createdAt
}
}
query {
getAllCalculations(page: 0) {
calculations {
firstValue
secondValue
operation
result
},
page,
totalPages
}
}
mutation {
deleteCalculations(ids: [1,2])
}