1. 개발 환경

1.1 개발 환경

1.2. gitignore 환경 변수

# server port
server:
  address: 0.0.0.0

spring:
  config:
    activate:
      on-profile: prod

  datasource:
    driver-class-name: com.mysql.cj.jdbc.Driver
    url: jdbc:mysql://{DB url}/{DB 이름}?useSSL=false&characterEncoding=UTF-8&serverTimezone=UTC&allowPublicKeyRetrieval=true
    username: {db ID}
    password: {db 비밀번호)

  jpa:
    database: mysql
    database-platform: org.hibernate.dialect.MySQL8Dialect
    hibernate:
      ddl-auto: update
    properties:
      hibernate:
        show_sql: true
        default_batch_fetch_size: 100
    open-in-view: false

  # Redis
  redis:
    port: {port 번호}
    host: {DB url}
    password: {DB password}

  thymeleaf:
    check-template-location: true
    suffix: .html
    mode: HTML
    cache: false

jwt:
  secret: {jwt 비밀키}

cloud:
  aws:
    credentials:
      access-key: {aws accessKey}
      secret-key: {aws secret}
    s3:
      bucket: {S3 이름}
    region:
      static: {S3 지역}
    stack:
      auto: false

ethereum:
  rpc-url: https://j9c110.p.ssafy.io/bc
  password: 1q2w3e4r!

privatekey:
  admin : bc3724072b1bbbaae643d07e2c39f1ab1cf9c003befc91ff3e87b6c62908e8db
  bepo : 912b96488ad18f82928d5cc9c3d6305db09c4e6b5f79a5518a241204926fa973
address:
  admin: "0x9A6D9dB08f536fd90DD4f77Ac79e17FA6B9c1E6a"
  token: "0x54B2008EC541Bd54e92f0901F7D2162e6D688FA0"
  funding: "0xC68E1341cd4334dd7be7831350C440E7548b2fA2"
OPENAI_API_KEY={openai key}

1.3 외부 서비스

2. 배포

2.0 Docker 설치

2.1 geth 배포

sudo apt update
sudo apt install golang

sudo apt install -y libgmp3-dev tree make build-essential