Skip to content
forked from farm-6/HEC-BE

[Han River Ecology Collect] Back-End

Notifications You must be signed in to change notification settings

FarmSystem/HEC-BE

 
 

Repository files navigation

HEC-BE 🦆

header

기술스택

SpringBoot MySQL

Gradle jwt Swagger JPA

Docker GCP

API 명세서

image

실행

git clone https://github.com/farm-6/HEC-AI.git

src/main/resources/application.yml

spring:
  config:
    import:
      - app.yml
  datasource:
    url: jdbc:mysql://database:3306/{your database name}?serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true
    driver-class-name: com.mysql.cj.jdbc.Driver
    username: root
    password: {your password}

  jpa:
    hibernate:
      dialect: org.hibernate.dialect.MySQL5InnoDBDialect
      ddl-auto: update
    properties:
      hibernate:
        format_sql: true
logging:
  level:
    farm: info

src/main/resources/app.yml

app:
  jwt:
    password: { social login password }
    secret: { jwt secret key }
    accessToken:
      expiration: 3600
    refreshToken:
      expiration: 86400

.env.db

sudo vim .env.db
MYSQL_HOST=localhost {your host}
MYSQL_PORT=3306
MYSQL_ROOT_PASSWORD={your password}
MYSQL_USER={your user name}
MYSQL_PASSWORD={your password}
MYSQL_DATABASE={your database name}

docker-compose

sudo docker-compose up --build -d

About

[Han River Ecology Collect] Back-End

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 99.1%
  • Dockerfile 0.9%