This document provides instructions on how to set up and run this project locally.
-
Start the PostgreSQL Database:
First, clone the
ncumt-dockerrepository and start the PostgreSQL container using Docker Compose.git clone https://github.com/Ben901227/ncumt-docker.git cd ncumt-docker docker-compose up -d db -
Configure Local Environment:
Copy the
application-local.templatefile toapplication-local.propertiesin thesrc/main/resourcesdirectory.cp src/main/resources/application-local.template src/main/resources/application-local.properties
Then, open
src/main/resources/application-local.propertiesand fill in yourclient-idandclient-secret. You can obtain them by following this guide: How to get client-id and client-secret.# src/main/resources/application-local.properties spring.security.oauth2.client.registration.bael.client-id=YOUR_CLIENT_ID spring.security.oauth2.client.registration.bael.client-secret=YOUR_CLIENT_SECRET
-
Run the Java Application:
Next, clone this repository and run the Spring Boot application.
git clone https://github.com/ncumtweb/ncumt-java.git cd ncumt-java/ncumt ./gradlew bootRunThe application will be available at
http://localhost:8080.