스포츠 배팅 웹사이트 만들기(5)(Team Project)

병호·2023년 10월 4일

Project

목록 보기
5/5
post-thumbnail

위에서 설명한 기능 이외에도 많은 패키지에 많은 기능들이 들어있다. 일일히 다 설명할 수 없기 때문에 핵심기능만 설명하면 일반적인 게시판 기능에 배팅기능을 추가한것이며 외부 api를 받아와서 설정해주었다.

application.yml

server:
  address : localhost
  port : 8080

# MySQL 연동 
spring:
  datasource:
    driver-class-name: com.mysql.cj.jdbc.Driver
    url: jdbc:mysql://localhost:3306/shootformoney
    username: root
    password: aA!123456

  jpa:
    hibernate:
      ddl-auto: create
    properties:
      hibernate:
        format_sql: true
        show_sql: true
    database: mysql
    show_sql: true

  # thymeleaf 설정
  thymeleaf:
    check-template-location: true
    prefix: classpath:/templates/
    suffix: .html
    cache: false
  mvc:
    static-path-pattern: /static/**

  # mail 설정
  mail:
    host: smtp.gmail.com
    port: 587
    username: crazymin180@gmail.com
    password: zumb zjje zocn cdmb
    properties:
      mail:
        smtp:
          auth: true
          starttls:
            enable: true
custom:
  siteName: shootformoney
  siteMainUri: http://localhost:8080
  emailFrom: test@localhost
  emailFromName: admin

logging.level:
  org.hibernate.SQL: debug

# football-data.org API 연동
football:
  api:
    key: 
    base-url: https://api.football-data.org/v4

위와 같이 base-url에서 키를 받아 api의 key: 부분에 넣어주면 연동이 가능하다.

ddl-auto는 처음에만 create로 데이터베이스를 생성해주고 이후로는 update로 진행하였다.

아쉬운 점

그동안 개인 공부만 해왔었는데 개인 프로젝트나 팀 프로젝트가 처음이라서 모든 면에서 많이 부족하다는 것을 느꼈고 원래 구현하려 했던 파일 업로드 기능을 구현하지 못해서 많이 아쉬웠다. 이론적으로 공부하는 것도 중요하지만 프로젝트를 함으로써 배우는 점이 많다는 것을 알게되었고 앞으로 다양한 프로젝트를 해봄으로써 부족한 부분은 채우고 더욱이 발전된 실력을 가져야겠다는 생각이 들었던 좋은 경험이었다.

깃 주소 : https://github.com/hyensukim/SpringBootTeamproject

profile
안녕하세요

0개의 댓글