Skip to content

Repository files navigation

NCUMT Java Project

This document provides instructions on how to set up and run this project locally.

Prerequisites

Setup and Run

  1. Start the PostgreSQL Database:

    First, clone the ncumt-docker repository 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
  2. Configure Local Environment:

    Copy the application-local.template file to application-local.properties in the src/main/resources directory.

    cp src/main/resources/application-local.template src/main/resources/application-local.properties

    Then, open src/main/resources/application-local.properties and fill in your client-id and client-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
    
  3. 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 bootRun

    The application will be available at http://localhost:8080.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages