Skip to content

chamysj/codeit-node6th-git

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

10 Commits
ย 
ย 

Repository files navigation

graph LR
    C["๐Ÿ‘ค Client
    ๐Ÿ‘คFrontend"]
    S["๐ŸŒ Backend"]
    DB["๐Ÿ—„๏ธ PostgreSQL Database"]
    FS["๐Ÿ“ Local File Storage"]

    C -->|"HTTP ์š”์ฒญ"| S
    S -->|"CRUD ์ฒ˜๋ฆฌ(Prisma)"| DB
    DB -->|"๋ฐ์ดํ„ฐ ์‘๋‹ต"| S
    S -->|"JSON ์‘๋‹ต"| C

    C -->|"์ด๋ฏธ์ง€ ์—…๋กœ๋“œ"| S
    S -->|"ํŒŒ์ผ ์ €์žฅ(Multer)"| FS
    FS -->|"์ด๋ฏธ์ง€ URL ์ œ๊ณต"| C

    C -->|"์ด๋ฏธ์ง€ ๋ณด๊ธฐ ์š”์ฒญ"| FS
    S -->|"์—๋Ÿฌ ๋ฐœ์ƒ ์‹œ 
    ์ „์—ญ ์—๋Ÿฌ ํ•ธ๋“ค๋Ÿฌ"| C
Loading
graph TD
    %% ๋…ธ๋“œ ์ •์˜
    Style["Style"]
    Image["Image"]
    Item["Item"]
    Tag["Tag"]
    StyleTag["StyleTag (_StyleTags)"]
    Curating["Curating"]
    Comment["Comment"]

    %% ๊ด€๊ณ„ ์ •์˜ (๋ผ๋ฒจ์— 1:N, N:N, 1:1 ํ‘œ๊ธฐ)
    Style -->|"1:N"| Image
    Style -->|"1:N"| Item
    Style -->|"1:N"| Curating
    Style -->|"N:N"| StyleTag

    Tag -->|"N:N"| StyleTag

    Curating -->|"1:1"| Comment
Loading
graph LR
    Client["๐Ÿ‘ค Client
    (Browser / Frontend)"]

    Server["๐ŸŒ Backend
    (Node.js / Express)"]
    DB["๐Ÿ—„๏ธ PostgreSQL Database
    (RENDER)"]
    Storage["๐Ÿ“ File Storage
    (RENDER)"]

    %% ์ผ๋ฐ˜ API ์š”์ฒญ ํ๋ฆ„
    Client -->|"HTTP ์š”์ฒญ (JSON)"| Server
    Server -->|"CRUD ์ฒ˜๋ฆฌ(Prisma)"| DB
    DB -->|"๋ฐ์ดํ„ฐ ์‘๋‹ต"| Server
    Server -->|"JSON ์‘๋‹ต"| Client

    %% ์ด๋ฏธ์ง€ ์—…๋กœ๋“œ ํ๋ฆ„
    Client -->|"์ด๋ฏธ์ง€ ์—…๋กœ๋“œ"| Server
    Server -->|"ํŒŒ์ผ ์ €์žฅ(Multer)"| Storage
    Storage -->|"์ด๋ฏธ์ง€ URL ์ œ๊ณต"| Client

    %% ์ •์  ํŒŒ์ผ ์ œ๊ณต
    Client -->|"์ด๋ฏธ์ง€ ๋ณด๊ธฐ ์š”์ฒญ"| Storage

    %% ์—๋Ÿฌ ์ฒ˜๋ฆฌ
    Server -->|"์—๋Ÿฌ ๋ฐœ์ƒ ์‹œ
    ์ „์—ญ ํ•ธ๋“ค๋Ÿฌ"| Client
Loading
graph TD
    %% ๋…ธ๋“œ ์ •์˜
    Article["Article"]
    Product["Product"]
    Comment["Comment"]
    User["User"]
    Like["Like"]

    %% ๊ด€๊ณ„ ์ •์˜ (๋ผ๋ฒจ์— 1:N, N:N, 1:1 ํ‘œ๊ธฐ)
    User -->|"1:N"| Product
    Like -->|"N:1 (optional)"| Article
    Like -->|"N:1 (optional)"| Product
    Comment -->|"N:1 (optional)"| Article
    Comment -->|"N:1 (optional)"| Product
    User -->|"1:N"| Article
    User -->|"1:N"| Comment
    User -->|"1:N"| Like
Loading
  • ํ•œ ์œ ์ €๋Š” ๊ฐ™์€ Product/Article ์— ํ•œ ๋ฒˆ๋งŒ ์ข‹์•„์š”๋ฅผ ๋ˆ„๋ฅผ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. (unique ์ œ์•ฝ)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors