- 最終更新
- 2026/08/17
3秒でわかる
ブラウザから見えないサーバー側で動く処理の総称。リクエストを受けてDBを読み書きし、認証を通して結果を返す部分を指します。
30秒図解
もう少し詳しく
どういうものか
バックエンドは、
なぜ必要か
画面側だけで
具体例
// Express での最小のバックエンド
import express from "express";
const app = express();
app.use(express.json());
app.get("/api/orders/:id", async (req, res) => {
const order = await db.order.findUnique({ where: { id: req.params.id } });
if (!order) return res.status(404).json({ error: "not found" });
if (order.userId !== req.user.id) return res.status(403).json({ error: "forbidden" });
res.json(order);
});
app.listen(3000);金額の
つまずきやすいところ
学習中に
似た用語との違い
| 語 | 担当 |
|---|---|
| フロントエンド | 利用者の |
| バックエンド | サーバーで |
| インフラ | サーバーや |
覚え方
利用者が




