Skip to content

πŸ“… μ—°μ°¨/당직 관리 μ„œλΉ„μŠ€

Notifications You must be signed in to change notification settings

YangSooHyun0/BE_server

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

79 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation


🐢 ν”„λ‘œμ νŠΈ μ†Œκ°œ

개발 κΈ°κ°„ : 2023. 07. 24. μ›” ~ 2023. 08. 10. λͺ©
> 배포 μ£Όμ†Œ : λ‹Ήμ—°ν•˜μ§€
> λ°±μ—”λ“œ λ ˆν¬μ§€ν† λ¦¬ : λ°±μ—”λ“œ
> ν”„λ‘ νŠΈ μœ μ € λ ˆν¬μ§€ν† λ¦¬ : ν”„λ‘ νŠΈ μœ μ €
> ν”„λ‘ νŠΈ κ΄€λ¦¬μž λ ˆν¬μ§€ν† λ¦¬ : ν”„λ‘ νŠΈ κ΄€λ¦¬μž

πŸ“š STACKS




πŸ’¬ Communication


πŸ‘¨β€πŸ‘©β€πŸ‘§β€πŸ‘¦ νŒ€μ› μ—­ν• 


μ •ν˜„μˆ˜ : κ΄€λ¦¬μž


ν™©μΈμ˜ : κ΄€λ¦¬μž


μ‹ μš©ν˜Έ : μœ μ €


μ–‘μˆ˜ν˜„ : μœ μ €

κ΄€λ¦¬μž 둜그인,
κ΄€λ¦¬μž νšŒμ›κ°€μž…,
κ΄€λ¦¬μž νšŒμ›κ΄€λ¦¬,
νŽ˜μ΄μ§•
μ—°μ°¨ / 당직 승인,
μ—°μ°¨ / 당직 리슀트,
νŽ˜μ΄μ§•
μœ μ € 둜그인,
μœ μ € νšŒμ›κ°€μž…,
μ„œλ²„ 배포
μ—°μ°¨ / 당직 μ‹ μ²­,
μ—°μ°¨ / 당직 μ·¨μ†Œ,
전체 리슀트 μΊ˜λ¦°λ”,
μ—‘μ…€ λ‹€μš΄λ‘œλ“œ

🐣 ν”„λ‘œμ νŠΈ μ‹œμž‘ν•˜λŠ” 법

1. 사전 μ€€λΉ„

1-1. Docker 섀지

1-2. .env 파일 생성 및 μ„€μ •

# SECRET_KEY λŠ” μž„μ˜λ‘œ 섀정해도 μƒκ΄€μ—†μœΌλ‚˜ 길이와 ν˜•μ‹μ€ 동일해야 ν•©λ‹ˆλ‹€.
JWT_SECRET_KEY=7f186169-ea6d-4bb8-80a1-148329b820c1
AES_SECRET_KEY=53B7A77CA2E9BA6CAA901E3A7087E638

# μ•„λž˜ 정보λ₯Ό λ°”νƒ•μœΌλ‘œ docker compose κ°€ μ‹€ν–‰λ©λ‹ˆλ‹€
DB_URL=localhost
DB_NAME=kdtmini5             # DB 이름
DB_PORT=3306                 # DB 포트
DB_USER=kdtmini5             # DB μ‚¬μš©μž ID
DB_PASSWORD=kdtKDTminiMINI5! # DB μ‚¬μš©μž νŒ¨μŠ€μ›Œλ“œ
DB_TYPE=mysql
DB_DRIVER=com.mysql.cj.jdbc.Driver

MAIL_SENDER_HOST=smtp.naver.com
MAIL_SENDER_PORT=465
MAIL_SENDER_USERNAME=jhss0113@naver.com  # 넀이버 ID - 메일 ν™˜κ²½ μ„€μ •μ—μ„œ POP/IMAP λ°œμ†‘ μ„€μ • ν•„μš”
MAIL_SENDER_PASSWORD=Z26WP98RH64K        # 넀이버 2단계 인증 - μ• ν”Œλ¦¬μΌ€μ΄μ…˜λ³„ λΉ„λ°€λ²ˆν˜Έ

1-3. (Option) IntelliJ - EnvFile Plugin

  • ν•΄λ‹Ή ν”ŒλŸ¬κ·ΈμΈμ„ μ‚¬μš©ν•  경우 IntelliJ μ—μ„œ μœ„μ—μ„œ μž‘μ„±ν•œ .envλ₯Ό μ΄μš©ν•˜μ—¬ ν™˜κ²½ λ³€μˆ˜λ₯Ό 지정할 수 μžˆμŠ΅λ‹ˆλ‹€.
  • .env 파일둜 ν™˜κ²½ λ³€μˆ˜ μ„€μ •ν•˜κΈ°

1-4. application-dev.yml λ‚΄μš© 직접 μˆ˜μ • (1-3. λ―Έμ μš©μ‹œ)

  • 1-2 의 λ‚΄μš©μ„ μ°Έκ³ ν•˜μ—¬ admin κ³Ό application 의 application-dev.yml 을 μ•„λž˜μ™€ 같이 μˆ˜μ •ν•΄μ£Όμ„Έμš”.
  • 도컀λ₯Ό μ‚¬μš©ν•˜μ§€ μ•Šκ³  Local Databaseλ₯Ό μ‚¬μš©ν•˜λŠ” κ²½μš°μ—λ„ ν•΄λ‹Ήλ©λ‹ˆλ‹€.
# λ‹€λ₯Έ λΆ€λΆ„ μƒλž΅
spring:
  datasource:
    username: ${DB_USER} # DB_USER 직접 μž…λ ₯
    password: ${DB_PASSWORD} # DB_PASSWORD 직접 μž…λ ₯
    url: jdbc:mysql://localhost:3306/${DB_NAME} # DB_NAME 에 직접 μž…λ ₯. mysql 이라고 κ°€μ •.
    driver-class-name: com.mysql.cj.jdbc.Driver

1-5. admin, application λ™μ‹œ μ‹€ν–‰μ‹œ ν…ŒμŠ€νŠΈ 데이터 μ΄ˆκΈ°ν™” ν•˜λ‚˜λ§Œ ν™œμ„±ν™”

  • ν…ŒμŠ€νŠΈ λ°μ΄ν„°μ˜ λ‚΄μš©μ€ admin, application 이 λ™μΌν•©λ‹ˆλ‹€.
  • λ‘˜μ„ λ™μ‹œμ— μ‹€ν–‰ν•˜μ‹€ 경우 λ‘˜ 쀑 ν•˜λ‚˜λ₯Ό μ„ νƒν•˜μ—¬ application-dev.yml 을 μˆ˜μ •ν•˜μ—¬ μ£Όμ„Έμš”
  • 단, λΉ„ν™œμ„±ν™”λœ μ• ν”Œλ¦¬μΌ€μ΄μ…˜μ„ λ‚˜μ€‘μ— μ‹€ν–‰ν•΄μ•Ό ν•©λ‹ˆλ‹€.
spring: 
  jpa:
    hibernate:
      ddl-auto: none # none 으둜 μˆ˜μ •
      naming:
        physical-strategy: org.hibernate.boot.model.naming.  CamelCaseToUnderscoresNamingStrategy
    properties:
      hibernate:
        format_sql: true
        show_sql: true
        dialect: org.hibernate.dialect.MySQL8Dialect
    defer-datasource-initialization: false # false 둜 μˆ˜μ •
    open-in-view: true

## μ•„λž˜μ˜ λ‚΄μš©μ„ μ‚­μ œ
  sql:
    init:
      mode: always
      data-locations: classpath:test/data.sql

πŸ–₯ κΈ°λŠ₯ μ†Œκ°œ

πŸ§™πŸ»β€β™‚οΈ 둜그인, νšŒμ›κ°€μž… νŽ˜μ΄μ§€ ꡬ성

둜그인 νŽ˜μ΄μ§€
νšŒμ›κ°€μž… νŽ˜μ΄μ§€
ν”„λ‘œν•„ μˆ˜μ • νŽ˜μ΄μ§€
λΉ„λ°€λ²ˆν˜Έ μž¬μ„€μ • νŽ˜μ΄μ§€



πŸ§™πŸ»β€β™€οΈ Side Bar - λ„€λΉ„κ²Œμ΄μ…˜ νŽ˜μ΄μ§€ ꡬ성

ν™ˆ νŽ˜μ΄μ§€
μ—°μ°¨ μ‹ μ²­ νŽ˜μ΄μ§€
당직 μ‹ μ²­ νŽ˜μ΄μ§€
λ‚΄ 일정보기 νŽ˜μ΄μ§€



πŸ§™πŸ» κ΄€λ¦¬μž κΆŒν•œ νŽ˜μ΄μ§€ ꡬ성

κ΄€λ¦¬μž 둜그인 νŽ˜μ΄μ§€
μœ μ € 리슀트 νŽ˜μ΄μ§€
μ—°μ°¨ μš”μ²­ 리슀트 νŽ˜μ΄μ§€
μ—°μ°¨ 리슀트 νŽ˜μ΄μ§€
당직 μš”μ²­ 리슀트 νŽ˜μ΄μ§€
당직 리슀트 νŽ˜μ΄μ§€

ERD


πŸ“ License

Copyright Β© 2023 λ‹Ήμ—°ν•˜μ§€.
This project is MIT licensed.

About

πŸ“… μ—°μ°¨/당직 관리 μ„œλΉ„μŠ€

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 98.8%
  • Shell 1.2%