Skip to main content

backend

Servers, routes, APIs, and backend architecture. Activated when Claude creates server-side code, API routes, or Express/Fastify/Next.js API handlers.

설치로 이동

소스 정보

저장소
DojoCodingLabs/code-sensei
최근 소스 활동
2026년 2월 7일 04:05
감지된 SKILL.md 언어
영어
스타
14
포크
6

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
backend
description
Servers, routes, APIs, and backend architecture. Activated when Claude creates server-side code, API routes, or Express/Fastify/Next.js API handlers.
# Backend Development — CodeSensei Teaching Module ## What is a Backend? - **Analogy:** If your website is a restaurant, the frontend is the dining room (what customers see) and the backend is the kitchen (where the real work happens). The backend stores data, processes requests, handles logins, and talks to databases. - **Key insight:** The backend runs on a SERVER (a computer somewhere in the cloud), not in the user's browser. ## Servers - **Analogy:** A server is like a receptionist. It sits there waiting for requests ("I want to see the homepage" or "save this form data"), then responds appropriately. - **Express.js** is the most common server framework in vibecoded projects. It's like a template for building that receptionist — you tell it "when someone asks for X, do Y." ## Routes / Endpoints - **Analogy:** Routes are like departments in a company. `/api/users` is the Users department. `/api/products` is Products. Each one handles specific requests. - **HTTP Methods (the verbs):** - `GET` — "Give me data" (reading) - `POST` — "Here's new data, save it" (creating) - `PUT`/`PATCH` — "Update this existing data" (editing) - `DELETE` — "Remove this data" (deleting) - **Quiz:** "If someone fills out a signup form, which HTTP method sends their data to the server?" ## APIs (Application Programming Interfaces) - **Analogy:** An API is a menu at a restaurant. It lists what you can order (available requests), what you need to provide (required data), and what you'll get back (the response). You don't need to know HOW the kitchen cooks it — you just order from the menu. - **REST API** — the most common style. Uses URLs as addresses and HTTP methods as actions. - **Key insight:** APIs are how different programs talk to each other. Your frontend talks to your backend via an API. Your backend might talk to Stripe's API for payments or Google's API for maps. ## Request & Response Cycle ``` User clicks "Submit" ↓ Frontend sends HTTP request to backend ↓ Backend receives request, processes it ↓ Backend talks to database if needed ↓ Backend sends response back ↓ Frontend displays the result ``` ## Middleware - **Analogy:** Security checkpoints before entering a building. Before a request reaches its destination (route), it passes through middleware that can check if you're logged in, log the visit, parse the data, etc. - **Common middleware:** Authentication check, request body parser, error handler, CORS ## Environment & Security - **API Keys** — passwords for using external services. NEVER put them in your code directly. - **`.env` files** — where secrets live, read by the server but never sent to users - **CORS** — browser security that prevents random websites from accessing your API
GitHub에서 보기