Skip to content

๐Ÿฃ ๋ฐฑ์—”๋“œ ์•ŒํŒ€ velog ํด๋ก ์ฝ”๋”ฉ

Notifications You must be signed in to change notification settings

prgrms-be-devcourse/BE-03-Prolog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

71 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿฅš Prolog

๋ฐฑ์—”๋“œ ์•ŒํŒ€ velog ํด๋ก ์ฝ”๋”ฉ ํ”„๋กœ์ ํŠธ

KakaoTalk_Photo_2023-02-12-17-39-02 001

๐Ÿ‘ ํ”„๋กœ์ ํŠธ ๋ชฉํ‘œ

ํ”„๋กœ๊ทธ๋ž˜๋จธ์Šค ๋ฐ๋ธŒ์ฝ”์Šค๋งŒ์˜ ๊ธฐ์ˆ  ๋ธ”๋กœ๊ทธ๋ฅผ ๋งŒ๋“ค์–ด์„œ ์ง€์‹์„ ๊ณต์œ ํ•ด๋ณด์ž

๐ŸŒ ํŒ€์› ์†Œ๊ฐœ

Scrum Master Product Owner Developer Developer Mentor Sub Mentor
img_3.png img.png img_1.png img_2.png img_4.png img_5.png
๋ฐ•ํ˜„์„œ ๋ณต์‹ ์˜ ๊ถŒ์ฃผ์„ฑ ์ตœ์€๋น„ ์•Œ ๊น€์šฉ์ฒ 
SPRING ์„ค์ • ํŒŒ์ผ + ์ „์—ญ ์˜ˆ์™ธ + ๋กœ๊ทธ ๊ด€๋ฆฌ
POST์˜ TAG ๊ธฐ๋Šฅ ๊ตฌํ˜„
Restdocs to Swagger UI
CI/CD
๋ฌด์ค‘๋‹จ ๋ฐฐํฌ
AWS ์„œ๋ฒ„ ๊ตฌ์ถ•
POST์˜ ํŒŒ์ผ ์—…๋กœ๋“œ ๊ธฐ๋Šฅ ๊ตฌํ˜„
SPRING SECURITY
User ๊ด€๋ฆฌ ๊ตฌํ˜„
POST์˜ ์‹œ๋ฆฌ์ฆˆ ๊ธฐ๋Šฅ ๊ตฌํ˜„
์ฃผ์š” ๋„๋ฉ”์ธ ๊ตฌํ˜„ - -

๐ŸŠ ๊ฐœ๋ฐœ ์–ธ์–ด ๋ฐ ํ™œ์šฉ๊ธฐ์ˆ 

Tech

Deploy

Tool

๐ŸŽ ์„ค๊ณ„ ๋ฐ ๋ฌธ์„œ

์‹œ์Šคํ…œ ๊ตฌ์กฐ

image

ํ”„๋กœ์ ํŠธ ๊ตฌ์กฐ

Prolog Entity Diagram

Prolog Diagram

ERD

Prolog ERD

Prolog API

image

CI/CD

image

๐Ÿ’ ๋ฐฐํฌ

  • ํ˜„์žฌ ์ ‘๊ทผ ๊ฐ€๋Šฅํ•œ IP (์„œ๋ฒ„ ์ง€์› ์ค‘๋‹จ)

  • Docker Image

๐Ÿ‡ ํ”„๋กœ์ ํŠธ ์‹คํ–‰ ๋ฐฉ๋ฒ•

ํ”„๋กœ์ ํŠธ ์‹คํ–‰ ์ „ ์•„๋ž˜ ํ•ญ๋ชฉ์„ ํ™•์ธํ•ด์ฃผ์„ธ์š”

  • database(mysql)๊ฐ€ ์‹คํ–‰๋˜๊ณ  ์žˆ์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค (docker-compose ์ œ์™ธ)
  • kakao OAuth๋ฅผ ์„œ๋น„์Šค๋ฅผ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค
  • ํ”„๋กœ์ ํŠธ์— ํ•„์š”ํ•œ ํ™˜๊ฒฝ ๋ณ€์ˆ˜๋“ค์„ ์ง€์ •ํ•ด์ฃผ์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค

ํ™˜๊ฒฝ ๋ณ€์ˆ˜

environment description
SPRING_DATASOURCE_USERNAME db์— ์ ‘์†ํ•  ์ˆ˜ ์žˆ๋Š” ์‚ฌ์šฉ์ž username
SPRING_DATASOURCE_PASSWORD db์— ์ ‘์†ํ•  ์ˆ˜ ์žˆ๋Š” ์‚ฌ์šฉ์ž password
SPRING_DATASOURCE_URL ์ ‘์†ํ•˜๋ ค๋Š” db์˜ url
JWT_ISSUER JWT ๋ฐœํ–‰์ž
JWT_SECRET_KEY JWT ๊ฒ€์ฆ์„ ์œ„ํ•œ ๋น„๋ฐ€ํ‚ค
REDIRECT_URI ์นด์นด์˜ค ๋กœ๊ทธ์ธ์—์„œ ์‚ฌ์šฉํ•  OAuth Redirect URI
CLIENT_ID Kakao ์•ฑ ํ‚ค(REST API ํ‚ค)
CLIENT_SECRET Kakao์—์„œ ๋ณด์•ˆ์„ ์œ„ํ•ด ์ œ๊ณตํ•˜๋Š” ๋น„๋ฐ€ํ‚ค
AWS_ACCESS_KEY AWS์— ์ ‘๊ทผํ•˜๊ธฐ ์œ„ํ•œ ACCESS_KEY
AWS_SECRET_KEY AWS์— ์ ‘๊ทผํ•˜๊ธฐ ์œ„ํ•œ SECRET_KEY

using Github Project

  1. github์—์„œ ํ”„๋กœ์ ํŠธ๋ฅผ ๋‹ค์šด๋ฐ›๋Š”๋‹ค

    git clone https://github.com/prgrms-be-devcourse/BE-03-Prolog

  2. .env.example ํŒŒ์ผ์„ ๋ณด๊ณ , .env ํŒŒ์ผ์„ ์ƒ์„ฑํ•˜๊ฑฐ๋‚˜ ํ™˜๊ฒฝ ๋ณ€์ˆ˜๋ฅผ ์ง€์ •ํ•ด์ค€๋‹ค

  3. build ํ›„, jar ํŒŒ์ผ์„ ์‹คํ–‰ํ•œ๋‹ค

    ./gradlew clean build
    java -jar build/libs/{prolog}.jar
    

using Docker Image

  1. docker๋ฅผ ์„ค์น˜ํ•œ๋‹ค

  2. docker hub์—์„œ docker image๋ฅผ ๋‹ค์šด๋ฐ›๋Š”๋‹ค, ์ž์„ธํ•œ ๊ฒฝ๋กœ๋Š” ์—ฌ๊ธฐ

    docker pull fortune00/prolog

  3. .env ํŒŒ์ผ์„ ๋งŒ๋“ค๊ณ , ์ปจํ…Œ์ด๋„ˆ๋ฅผ ์‹คํ–‰ํ•œ๋‹ค

    docker run --env-file=.env -d fortune00/prolog

using Docker-Compose

  1. docker-compose๋ฅผ ์„ค์น˜ํ•œ๋‹ค

  2. docker-compose.yml ํŒŒ์ผ์„ ์ƒ์„ฑํ•œ๋‹ค

    version : "3"
    services:
      db:
        container_name: prolog-db
        image: mysql
        environment:
          MYSQL_DATABASE: ${MYSQL_DATABASE}
          MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
        ports:
          - "3306:3306"
        volumes:
          - ./mysqldata:/var/lib/mysql
        restart: always
      app:
        container_name: prolog-app
        image: fortune00/prolog
        ports:
          - "8080:8080"
        working_dir: /app
        depends_on:
          - db
        restart: always
        environment:
          SPRING_DATASOURCE_USERNAME: ${SPRING_DATASOURCE_USERNAME}
          SPRING_DATASOURCE_PASSWORD: ${SPRING_DATASOURCE_PASSWORD}
          SPRING_DATASOURCE_URL: ${SPRING_DATASOURCE_URL} #IP ๊ฐ’์œผ๋กœ "prolog-db"๋ฅผ ๋„ฃ์–ด์ฃผ์„ธ์š”
          JWT_ISSUER: ${JWT_ISSUER}
          JWT_SECRET_KEY: ${JWT_SECRET_KEY}
          CLIENT_ID: ${CLIENT_ID}
          CLIENT_SECRET: ${CLIENT_SECRET}
          REDIRECT_URI: ${REDIRECT_URI}
          AWS_ACCESS_KEY: ${AWS_ACCESS_KEY}
          AWS_SECRET_KEY: ${AWS_SECRET_KEY}
  3. docker-compose.yml๊ณผ ๊ฐ™์€ ๊ฒฝ๋กœ์— .env ํŒŒ์ผ์„ ๋งŒ๋“ค๊ณ , docker-compose๋ฅผ ์‹คํ–‰ํ•œ๋‹ค

    docker-compose -d up

ํ…Œ์ŠคํŠธ ์ปค๋ฒ„๋ฆฌ์ง€

Jacoco

แ„‰แ…ณแ„แ…ณแ„…แ…ตแ†ซแ„‰แ…ฃแ†บ 2023-02-06 แ„‹แ…ฉแ„’แ…ฎ 3 56 15

IntelliJ

แ„‰แ…ณแ„แ…ณแ„…แ…ตแ†ซแ„‰แ…ฃแ†บ 2023-02-05 แ„‹แ…ฉแ„’แ…ฎ 10 30 09

๐Ÿซ ํ”„๋กœ์ ํŠธ ํŽ˜์ด์ง€

๊นƒ ๋ธŒ๋žœ์น˜ ์ „๋žต

image

About

๐Ÿฃ ๋ฐฑ์—”๋“œ ์•ŒํŒ€ velog ํด๋ก ์ฝ”๋”ฉ

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages