Skip to content

๐Ÿ” MSA๋กœ ๊ตฌ์„ฑ๋œ ์ธ์ฆ ์‹œ์Šคํ…œ ๐Ÿ”

Notifications You must be signed in to change notification settings

YJeongKim/Authorization-System-Backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

28 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Authorization-System ๐Ÿ”๏ธ


๐ŸŽฏ Requirements Spec

  • ์‚ฌ์šฉ์ž DB ์„ค๊ณ„

  • ๊ฐ€์ž…, ๋กœ๊ทธ์ธ ํŽ˜์ด์ง€

  • ์ธ์ฆ ์„œ๋ฒ„ (API)

  • RDBMS DB ์‚ฌ์šฉ (MySQL, PostgreSQL)

  • Password Encryption

  • ์œ ์ € ๊ด€๋ฆฌ ํŽ˜์ด์ง€ (Admin/BackOffice)

  • E-Mail ์ธ์ฆ

  • ๋น„๋ฐ€๋ฒˆํ˜ธ ์ฐพ๊ธฐ

  • ์บ์‹œ


๐ŸŽฎ Skill

Backend

Java SpringBoot Gradle H2Database(test) MySQL(local) Redis SpringDataJPA SpringCloud

Frontend

React JavaScript SCSS


Architecture

msa-server


DataBase Modeling

(์ถ”๊ฐ€ ์˜ˆ์ •)


๐Ÿงฉ API Spec

Request URL : https://localhost:9000/


Auth-Service

POST /api/auth/token

โœ”๏ธ ๋กœ๊ทธ์ธ์„ ์ˆ˜ํ–‰ํ•˜๊ณ  Json Web Token์„ ๋ฐœ๊ธ‰ํ•œ๋‹ค.
  ๋‚ด๋ถ€์ ์œผ๋กœ `POST` /api/users/signIn ํ˜ธ์ถœ
  • Request

    • Start Line

      POST /api/auth/token
    • Body

      {
          "email" : "string/Email",
          "password" : "string/๋น„๋ฐ€๋ฒˆํ˜ธ"
      }
  • Response

    • Status Line

      200 OK
      400 Bad Request         // ์ƒํ™ฉ์— ๋”ฐ๋ผ message ์ถœ๋ ฅ
    • Body

      {
          "id"   : "string/user Id",
          "nickname"  : "string/๋‹‰๋„ค์ž„"
      }

User-Service

POST /api/users

โœ”๏ธ User ์ •๋ณด๋ฅผ ์กฐํšŒํ•œ๋‹ค.
  • Request

    • Start Line

      POST /api/users
  • Response

    • Status Line

      200 OK
      400 Bad Request
    • Body

      {
          "email"   : "string/Email",
          "name"  : "string/์ด๋ฆ„",
          "nickname"  : "string/๋‹‰๋„ค์ž„"
      }

(๋‚˜๋จธ์ง€ API๋Š” ์ถ”ํ›„ ์ž‘์„ฑ)

About

๐Ÿ” MSA๋กœ ๊ตฌ์„ฑ๋œ ์ธ์ฆ ์‹œ์Šคํ…œ ๐Ÿ”

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published