Skip to content

Latest commit

 

History

History

server

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

run and fun - server

Getting started

# all commands used in ./server
cd server

Create environment files for devMode and prodMode.

cp src/main/resources/application.yml src/main/resources/application-dev.yml
cp src/main/resources/application.yml src/main/resources/application-prod.yml

Note: These files will not be under version control but listed in .gitignore.

Usage

Run in devMode

# short
./mvnw

# long
./mvnw spring-boot:run -Pdev

Run in prodMode

# short
./mvnw -Pprod

# long
./mvnw spring-boot:run -Pprod

Package and run in prodMode

# package
./mvnw clean package

# package without tests
./mvnw clean package -DskipTests

# place the `application-prod.yml` aside the run-and-fun-1.0.0-SNAPSHOT.jar and run the jar
cp src/main/resources/application-prod.yml target/application-prod.yml
cd target
java -jar run-and-fun-1.0.0-SNAPSHOT.jar --spring.profiles.active=prod

Configuration

General

All options have to been set in the environment files.

Table of contents

clientId

The id of the client.

  • default: EMPTY
  • type: string

clientSecret

The secret of the client.

  • default: EMPTY
  • type: string

redirectUri

The uri used to send the verification code back.

  • default: EMPTY
  • type: string