con un clic
express-api-design
// Express.js REST API design and implementation guide. Use when implementing REST API endpoints, creating Express routes, or setting up API project structure with MVC pattern.
// Express.js REST API design and implementation guide. Use when implementing REST API endpoints, creating Express routes, or setting up API project structure with MVC pattern.
Raft ํฉ์ ์๊ณ ๋ฆฌ์ฆ ์ค๊ณ ๋ฐ ๊ตฌํ ๊ฐ์ด๋. ๋ถ์ฐ ์์คํ , ํฉ์ ํ๋กํ ์ฝ, ๋ฆฌ๋ ์ ์ถ, ๋ก๊ทธ ๋ณต์ ๋ฅผ ๊ตฌํํ ๋ ์ฌ์ฉํ๋ค.
๋ฆฌ์กํฐ๋ธ ์คํ๋ ๋์ํธ ์์ง ์ค๊ณ ๊ฐ์ด๋. ์ ์์ ํ์ฑ, ์์กด์ฑ ๊ทธ๋ํ(DAG), ์ฆ๋ถ ์ฌ๊ณ์ฐ, ๋ด์ฅ ํจ์ ๊ตฌํ ์ ์ฌ์ฉํ๋ค.
๋ฐ์ดํธ์ฝ๋ ์ปดํ์ผ๋ฌ + ์คํ VM ์ค๊ณ ๊ฐ์ด๋. MiniLang์ ๋ฐ์ดํธ์ฝ๋๋ก ์ปดํ์ผํ๊ณ VM์์ ์คํํ ๋ ์ฌ์ฉํ๋ค.
์ด๋ฒคํธ ์์ฑ + CQRS ํจํด ์ค๊ณ ๊ฐ์ด๋. EventStore, Aggregate, Projection, Saga, Snapshot ๊ตฌํ ์ ์ฌ์ฉํ๋ค.
Language Server Protocol ์๋ฒ ๊ตฌํ ๊ฐ์ด๋. LSP ์๋ฒ, ์ฆ๋ถ ํ์ฑ, ์๋์์ฑ, ์ง๋จ, Go-to-Definition, ํธ๋ฒ๋ฅผ ๊ตฌํํ ๋ ์ฌ์ฉํ๋ค.
Analyze and fix race conditions and concurrency bugs in async code. Use when debugging async bugs, fixing race conditions, resolving concurrency issues, or when shared state is accessed by multiple async operations.
| name | express-api-design |
| description | Express.js REST API design and implementation guide. Use when implementing REST API endpoints, creating Express routes, or setting up API project structure with MVC pattern. |
src/
app.js - Express ์ฑ ์ค์ , ๋ฏธ๋ค์จ์ด ๋ฑ๋ก, ๋ผ์ฐํธ ๋ง์ดํธ
routes/
{resource}Routes.js - ๋ผ์ฐํธ ์ ์ (HTTP ๋ฉ์๋ + ๊ฒฝ๋ก)
controllers/
{resource}Controller.js - ๋น์ฆ๋์ค ๋ก์ง
models/
{resource}Store.js - ๋ฐ์ดํฐ ๋ชจ๋ธ ๋ฐ CRUD ์ฐ์ฐ
middleware/
validate.js - ์
๋ ฅ ์ ํจ์ฑ ๊ฒ์ฌ ๋ฏธ๋ค์จ์ด
errorHandler.js - ๊ธ๋ก๋ฒ ์๋ฌ ํธ๋ค๋ง
{ error: "๋ฉ์์ง" }์์ธ ์ฝ๋ ํจํด์ references/patterns.md ์ฐธ์กฐ.