Moonlit Torii

Node.js

ファイル、イベント、Buffer、Stream、HTTP、Express、Koa、MySQL の学習ノート。

Node.js のコアモジュール、Web フレームワーク、データベースの学習ノートです。図とコードは元の順序で本文中に残しています。

実行環境:原稿は CommonJS を使っています。.cjs として保存するか、type: commonjs の独立したディレクトリで実行します。コードブロックは個別の例であり、1 ファイルに連結しません。依存パッケージやローカルファイルは別途用意します。比較のためコード・コメント・出力文字列・中国語の画像は原文のまま残し、訂正は該当する節に記載しています。

Node.js の実行環境

実行環境の基本から、ファイル・イベント・バイナリデータを経てサーバー開発へ進みます。

元の図 001 · Node.js の実行環境

元の図 002 · Node.js の実行環境

元の図 003 · Node.js の実行環境

元の図 004 · Node.js の実行環境

fs:ファイルシステム

同期 API は JavaScript の実行をブロックします。非同期処理にはコールバック API や Promise API を使います。文字コードを指定しない読み取り結果は Buffer です。ファイルシステムのドキュメント。

元の図 005 · fs:ファイルシステム

fs API

Node.js fs API

元の図 006 · fs API

元の図 007 · fs API

javascript
// node中支持CJS更多
const { isUtf8 } = require("buffer");
const fs = require("fs");

// 1.同步读取
// 直接读出来是buffer
const res1 = fs.readFileSync("./abc.txt", {
  encoding: "utf-8",
});
console.log(res1);

// 2.异步读取
// 通过回调函数 打印对应的代码
// 不会阻塞后续代码的运行 读到文件再传入
// 回调函数嵌套 容易形成回调地狱
const res2 = fs.readFile(
  "./abc.txt",
  {
    encoding: "utf-8"
  },
  (err, data) => {
    console.log(data);
  },
);

// 3.异步读取 promise
fs.promises
  .readFile("./abc.txt", {
    encoding: "utf-8",
  })
  .then((res) => {
    console.log(res);
  })
  .catch((err) => {
    console.log("发生了错误", err);
  });

ファイルディスクリプター

訂正:以下の原稿の fs.close(fd) にはコールバックがありません。fs.close(fd, callback) とし、エラー時にも開いたファイルを閉じます。Promise API では finally 内で FileHandle.close() を呼び出せます。

元の図 008 · ファイルディスクリプター

javascript
const fs = require("fs");

// 打开一个文件 并未进行操作
fs.open("./abc.txt", (err, fd) => {
  // fd 是数字类型的文件描述符
  if (err) {
    console.log("文件打开错误", err);
    return;
  }
  // 获取文件描述符
  console.log(fd);
  // 读取到文件的信息
  fs.fstat(fd, (err, stats) => {
    if (err) return;
    console.log(stats);

    // 要手动关闭文件
    fs.close(fd)
  });
});

ファイルの読み書き

元の図 009 · ファイルの読み書き

javascript
const fs = require("fs");

const content = "hello world";

// 文件的写入操作
// 第三个参数 可选
fs.writeFile("./ccc.txt", content, { flag: "a+", encoding: "utf-8" }, (err) => {
  if (err) {
    console.log("文件写入错误", err);
  } else {
    console.log("文件写入成功");
  }
});

元の図 010 · ファイルの読み書き

元の図 011 · ファイルの読み書き

ディレクトリの操作

ディレクトリの一覧を処理する前にバックコールの err を確認します。パスの組み合わせには node:path の join() が使用できます。オリジナル原稿の一部を加工して省略させていただきました。

元の図 012 · ディレクトリの操作

javascript
const fs = require("fs");

// 创建文件夹dirc
// fs.mkdir("./why", (err) => {
//   console.log(err);
// });

// 获取文件夹的内容
// fs.readdir("./why", (err, files) => {
//   console.log(files);
// })

// 读取文件夹 并且获取文件夹中的信息
// Symbol 2 文件夹 1 文件
// fs.readdir("./why", { withFileTypes: true }, (err, files) => {
//   files.forEach((item) => {
//     // 判断是不是文件夹
//     if (item.isDirectory()) {
//       console.log("文件夹", item.name);
//     } else {
//       console.log("文件", item.name);
//     }
//   });
// });

// 递归读取所有的文件 (到底层)
function readDir(path) {
  fs.readdir(path, { withFileTypes: true }, (err, files) => {
    files.forEach(item => {
      if (item.isDirectory()) {
        readDir(`${path}/${item.name}`)
      } else {
        console.log(item.name);
      }
    })
  });
}


readDir("./why")
javascript
const fs = require("fs")

// 可以对文件/文件夹 进行重命名 
// fs.rename("./why", "./kobe", (err) => {
//   console.log(err);
// })

fs.rename("./kobe", "./why", (err) => {
  console.log(err);
})

events:イベント処理

EventEmitter は on でログインし、emit で発火し、off で不明です。 once は一度だけ実行されます。リスナーの毇び出しとは同じ期間の通信は不了実行されます。

基本レシピ

原稿図 013:基本的な使い方

javascript
const EventEimtter = require("events")

// events中的事件总线

function handleWhyFn() {
  console.log("监听why的事件");
}

// 创建实例
const emitter = new EventEimtter()

// 监听事件
emitter.on("why",handleWhyFn)

// 发射事件
setTimeout(() => {
  emitter.emit("why", "coderwhy", 18, 1.88)

  // 取消事件监听
  emitter.off("why", handleWhyFn)

  setTimeout(() => {
    emitter.emit("why")
  }, 1000);
}, 2000);

その他のメソッド

元の図 014 · その他のメソッド

元の図 015 · その他のメソッド

javascript
const EventEimtter = require("events");

const ee = new EventEimtter();

ee.on("why", () => {});
ee.on("why", () => {});
ee.on("why", () => {});

ee.on("kobe", () => {});
ee.on("kobe", () => {});

// 1.获取所欲监听事件的名称
console.log(ee.eventNames());

// 2.获取监听的最大的监听个数
console.log(ee.getMaxListeners());

// 3.获取某一个事件名称对应的监听器个数
console.log(ee.listenerCount("why"));

// 4.获取某一个事件名称对应的监听器函数(数组)
console.log(ee.listeners("why"));

javascript
const EventEimtter = require("events");

const ee = new EventEimtter();

// 1.once:事件监听只监听一次(第一次发射事件的时候进行监听)
ee.once("why", () => {
  console.log("on监听why");
});

// 2.将事件监听添加到最前面
ee.prependListener("why", () => {
  console.log("on监听why2");
});

// 3.将事件监听添加到最前面 只执行一次
ee.prependOnceListener("why", () => {
  console.log("on监听why3");
});

// 4.移除所有的监听事件
// 不传参的情况下 移除所有的监听事件
ee.removeAllListeners()

ee.emit("why")
ee.emit("why")
ee.emit("why")

Buffer

Buffer はバイト列を表します。文字列への変換では文字コードに注意します。生成には Buffer.from() と Buffer.alloc() を使い、原稿内のコメントアウトされた new Buffer() は旧式の記法です。

元の図 016 · Buffer

元の図 017 · Buffer

Buffer と文字列

元の図 018 · Buffer と文字列

元の図 019 · Buffer と文字列

javascript
// 1.创建一个buffer
// const buf = new Buffer("hello")
// console.log(buf);

const buf2 = Buffer.from("world")
console.log(buf2);
console.log(buf2.toString());

その他の Buffer 変換

元の図 020 · その他の Buffer 変換

元の図 021 · その他の Buffer 変換

元の図 022 · その他の Buffer 変換

Buffer の生成とメモリ

元の図 023 · Buffer の生成とメモリ

元の図 024 · Buffer の生成とメモリ

元の図 025 · Buffer の生成とメモリ

元の図 026 · Buffer の生成とメモリ

javascript
const fs = require("fs")

// 创建一个Buffer对象
// alloc向操作系统 申请一块内存空间 8是8字节
const buf = Buffer.alloc(8)

// 手动的对每个字节进行操作
console.log(buf);
buf[0] = 100
buf[1] = 0x66
console.log(buf);
console.log(buf.toString());

// 转化进行的是ASCII编码
buf[2] = "m".charCodeAt()
console.log(buf);
javascript
const fs = require("fs");

// 1.从文件中读取buffer
fs.readFile("./aaa.txt", { encoding: "utf-8" }, (err, data) => {
  console.log(data);
});

fs.readFile("./aaa.txt", (err, data) => {
  console.log(data);
});

fs.readFile("./aaa.txt", (err, data) => {
  data[0] = 100
  console.log(data.toString());
})

// 读取一张图片的二进制 (Node中的sharp库)
fs.readFile("./sora.jpg", (err, data) => {
  console.log(data);
})

Stream の読み書き

ストリームには Readable・Writable・Duplex・Transform があります。データを分割して扱い、write() が false を返したら drain を待ってバックプレッシャーに対応します。Stream のドキュメント。

元の図 027 · Stream の読み書き

4 種類の Stream

元の図 028 · 4 種類の Stream

Readable:読み取りストリーム

元の図 029 · Readable:読み取りストリーム

元の図 030 · Readable:読み取りストリーム

javascript
const fs = require("fs");

// 1.一次性读取
// 缺点1:没办法精确的读取位置
// 缺点2:读取到某个位置 暂停、回复读取
// 缺点3:文件文件非常大的时候 多次读取
// fs.readFile("./aaa.txt", (err, data) => {
//   console.log(data);
// });

// 2.通过流读取文件
// 创建一个可读流
// start end: 从哪里开始/结束 包含end
const readStream = fs.createReadStream("./aaa.txt", {
  start: 8,
  end: 22,
  // 3个一次
  highWaterMark: 3,
});

readStream.on("data", (data) => {
  console.log(data.toString());

  readStream.pause()

  setTimeout(() => {
    readStream.resume()
  }, 2000);
})
javascript
const fs = require("fs");

// 1.通过流读取文件
const readStream = fs.createReadStream("./aaa.txt", {
  start: 8,
  end: 22,
  // 3个一次
  highWaterMark: 3,
});

// 2.监听读到的数据
readStream.on("data", (data) => {
  console.log(data.toString());
})

// 3.补充其他监听事件
// fd 指的是文件描述符(File Descriptor)
readStream.on("open", (fd) => {
  console.log("通过流将文件打开", fd);
})

readStream.on("end", () => {
  console.log("已经读到end位置");
})

readStream.on("close", () => {
  console.log("文件读取结束,并且被关闭");
})

Writable:書き込みストリーム

元の図 031 · Writable:書き込みストリーム

元の図 032 · Writable:書き込みストリーム

元の図 033 · Writable:書き込みストリーム

javascript
const fs = require("fs");

// 1.一次性写入内容
// fs.writeFile("./bbb.txt", "hello world", {
//   encoding: "utf-8",
//   // 追加
//   flag: "a+",
// }, (err) => {
//   console.log("文件写入错误", err);
// })

// 2.创建写入流
// start
const writeSteam = fs.createWriteStream("./bbb.txt", {
  flags: "a+",
});

writeSteam.on("open", () => {
  console.log("文件打开");
});

writeSteam.on("finish", () => {
  console.log("文件写入完成");
});

writeSteam.on("close", () => {
  console.log("文件关闭");
});

writeSteam.write("jack chiang");

// 3.写入完成时,需要手动关闭
// writeSteam.close()

// 4.end方法
// 最后内容写入 关闭文件
writeSteam.end("hahahaha");

pipe メソッド

pipe() はデータ転送とバックプレッシャーを扱いますが、エラー時のチェーンオールの後処理は行いません。エラーの伝ブロードキャストとストリームの最終処理には node:stream/promises の pipeline() を使います。

元の図 034 · pipe メソッド

javascript
const fs = require("fs");

// 1.方法一:一次性读取和写入
// fs.readFile("./aaa.txt", (err, data) => {
//   fs.writeFile("./aaa_copy.txt", data, () => {
//     console.log("写入文件完成");
//   })
// });

// 2.方法二:创建可读流和可写流
const readStream = fs.createReadStream("./aaa.txt")
const writeStream = fs.createWriteStream("./aaa_copy.txt")

// readStream.on("data", (data) => {
//   writeStream.write(data)
// })

// readStream.on("end", () => {
//   writeStream.close()
// })

// 3.可读流和可写流间建立一个通道
readStream.pipe(writeStream)

http モジュールと Web サーバー

リクエストから URL・メソッド・ヘッダー・ボディを読み、レスポンスにステータス・ヘッダー・本文を設定します。ポート範囲は 0〜65535 で、0 を指定すると OS が空きポートを割り当てます。HTTP のドキュメント。

元の図 035 · http モジュールと Web サーバー

http モジュール

元の図 036 · http モジュール

元の図 037 · http モジュール

元の図 038 · http モジュール

javascript
const http = require("http")

// 创建一个服务器
const server = http.createServer((request, response) => {
  // request包含客户端的所有信息
  // url method headers 携带的数据
  // response对象用于给客户端返回结果
  response.end("hello world")
})

// 开启的服务器 并且告知监听的端口
// 监听端口的时候 监听1024以上的端口 65535以下的端口
// 1025-65535
// 2个字节 256*256 => 0-65536
server.listen(8888, () => {
  console.log("服务器开启成功");
})

元の図 039 · http モジュール

request オブジェクト

元の図 040 · request オブジェクト

URL とリクエストメソッド

元の図 041 · URL とリクエストメソッド

javascript
const http = require("http");

const server = http.createServer((req, res) => {
  const url = req.url;
  const method = req.method;

  if (url === "/login") {
    if (method === "POST") {
      res.end("登录成功");
    } else {
      res.end("不支持的请求方式,请检测你的请求方式---");
    }
  } else if (url === "/products") {
    if (method === "GET") {
      res.end("商品列表");
    } else {
      res.end("不支持的请求方式,请检测你的请求方式---");
    }
  } else {
    res.end("不存在的url,请检查url地址");
  }
});

server.listen(8888, () => {
  console.log("服务器开启成功");
});

クライアントデータの処理

訂正:ボディは複数の data チャンクに分かれるため、各チャンクで JSON を解析してはいけません。サイズを制限して蓄積し、end 後に解析します。不正な JSON・ストリームエラー・中断にも対応します。固定の認証情報は分岐の例です。

javascript
const http = require("http");
const url = require("url");

const server = http.createServer((req, res) => {
  // 参数1:query类型的参数
  // 解析url
  const urlInfo = url.parse(req.url);
  const urlPath = urlInfo.pathname
  // console.log(urlInfo.query, urlInfo.pathname);

  // 解析query
  const params = new URLSearchParams(urlInfo.query)
  console.log(params.get("id"));

  res.end("hello world");
});

server.listen(8888, () => {
  console.log("服务器开启成功");
});
javascript
const http = require("http");
const url = require("url");

const server = http.createServer((req, res) => {
  let isLogin = false;
  // request 本质上是一个可读流
  req.setEncoding("utf-8");

  req.on("data", (data) => {
    const loginInfo = JSON.parse(data);

    if (loginInfo.name === "coderwhy" && loginInfo.password === "123456") {
      isLogin = true;
    } else {
      isLogin = false;
    }
  });

  req.on("end", () => {
    if (isLogin) {
      res.end("登录成功");
    } else {
      res.end("输入有误");
    }
  });
});

server.listen(8888, () => {
  console.log("服务器开启成功");
});

元の図 042 · クライアントデータの処理

元の図 043 · クライアントデータの処理

元の図 044 · クライアントデータの処理

HTTP リクエストヘッダー

元の図 045 · HTTP リクエストヘッダー

元の図 046 · HTTP リクエストヘッダー

元の図 047 · HTTP リクエストヘッダー

元の図 048 · HTTP リクエストヘッダー

元の図 049 · HTTP リクエストヘッダー

Node.js で Axios を使う

この節には元の HTTP クライアントの使用例を残しています。Axios は Node.js の組み込みモジュールではなく、別途インストールする依存パッケージです。

元の図 050 · Node.js で Axios を使う

ファイルアップロードの仕組み

ファイル送信には通常 multipart/form-data を使います。JSON や URL エンコード用のパーサーでは代用できません。後の節では Multer を扱います。

元の図 051 · ファイルアップロードの仕組み

元の図 052 · ファイルアップロードの仕組み

元の図 053 · ファイルアップロードの仕組み

Express フレームワーク

Expressはログインを正しく実行するミドルウェアで、ルーティング・ANALYSIS・応答を構成します。ミドルウェアは応答するか、next()で時の処理に多くなります。

元の図 054 · Express フレームワーク

Express のインストール

元の図 055 · Express のインストール

Express ドキュメント

https://www.expressjs.com.cn/guide/routing.html

元の図 056 · Express ドキュメント

ミドルウェアの基本

Express のリクエスト処理コールバックはミドルウェアと呼ばれ、種類ごとに対応する関数シグネチャがあります。

元の図 057 · ミドルウェアの基本

元の図 058 · ミドルウェアの基本

元の図 059 · ミドルウェアの基本

リクエストボディの解析

元の図 060 · リクエストボディの解析

元の図 061 · リクエストボディの解析

Express 組み込みミドルウェア

元の図 062 · Express 組み込みミドルウェア

サードパーティーのミドルウェア

元の図 063 · サードパーティーのミドルウェア

Multer によるファイルアップロード

元の図 064 · Multer によるファイルアップロード

元の図 065 · Multer によるファイルアップロード

元の図 066 · Multer によるファイルアップロード

params と query パラメーター

元の図 067 · params と query パラメーター

レスポンスの送信

元の図 068 · レスポンスの送信

元の図 069 · レスポンスの送信

Express のルーティング

以下の 2 ブロックはエントリーファイルと router/userRouter.cjs に対応します。.cjs を使う場合、原稿の拡張子なしの require パスも ./router/userRouter.cjs に変更します。

元の図 070 · Express のルーティング

javascript
const express = require("express");
const userRouter = require("./router/userRouter")

const app = express();

// 编写中间件
app.post("/login", (req, res, next) => {});
app.get("/home", (req, res, next) => {});

// 用户的接口
// 1.将用户的接口直接定义到app中
// app.get("/user", (req, res, next) => {});
// app.get("/user/:id", (req, res, next) => {});
// app.post("/user/:id", (req, res, next) => {});
// app.delete("/user/:id", (req, res, next) => {});
// 更新用户
// app.patch("/user/:id", (req, res, next) => {});

// 2.定义到单独的路由对象中
// const userRouter = express.Router();
// userRouter.get("/", (req, res, next) => {
//   res.json("用户列表数据");
// });
// userRouter.get("/:id", (req, res, next) => {
//   const id = req.params.id;
//   res.json("某一个用户的数据" + id);
// });
// userRouter.post("/:id", (req, res, next) => {
//   res.json("创建用户成功");
// });
// userRouter.delete("/:id", (req, res, next) => {
//   const id = req.params.id;
//   res.json("删除某一个用户的数据" + id);
// });
// userRouter.patch("/:id", (req, res, next) => {
//   const id = req.params.id;
//   res.json("修改某一个用户的数据" + id);
// });

// 让路由生效
app.use("/users", userRouter);

app.listen(8888, () => {
  console.log("express启动成功");
});

javascript
const express = require("express");

const userRouter = express.Router();

userRouter.get("/", (req, res, next) => {
  res.json("用户列表数据");
});
userRouter.get("/:id", (req, res, next) => {
  const id = req.params.id;
  res.json("某一个用户的数据" + id);
});
userRouter.post("/:id", (req, res, next) => {
  res.json("创建用户成功");
});
userRouter.delete("/:id", (req, res, next) => {
  const id = req.params.id;
  res.json("删除某一个用户的数据" + id);
});
userRouter.patch("/:id", (req, res, next) => {
  const id = req.params.id;
  res.json("修改某一个用户的数据" + id);
});

module.exports = userRouter

Jing の F ファイルの配布

元の図 071 · Jing のファイルの配布

サーバーのエラー処理

エラーミドルウェアはルートの後に置き、4 引数を保持します。原稿の業務コードに加えて適切な HTTP ステータスも返します。Express 4 では非同期の拒否を next に渡し、Express 5 はハンドラーが返す Promise の拒否を転送します。エラー処理のドキュメント。

元の図 072 · サーバーのエラー処理

元の図 073 · サーバーのエラー処理

javascript
const express = require("express");

const app = express();

// 解析json
app.use(express.json());

/**
 * 服务器给客户端返回错误信息的方案:
 * 1.返回错误码
 * 2.返回200 并且返回code 和message
 */

// 编写中间件
app.post("/login", (req, res, next) => {
  // 获取用户名和密码
  const { username, password } = req.body;
  // 对用户名和密码进行验证
  if (!username || !password) {
    next(-1001);
  } else if (username !== "coderwhy" || password !== "123456") {
    next(-1002)
  } else {
    res.json({
      code: 0,
      message: "登陆成功",
      token: "323dfafadfa3222",
    });
  }
});

// 错误处理的中间件
app.use((err, req, res, next) => {
  const code = err;
  let message = "未知错误信息";

  switch (code) {
    case -1001:
      message = "没有输入用户名和密码";
      break;
    case -1002:
      message = "用户名或密码输入错误";
      break;
  }

  res.json({ code, message });
});

app.listen(8888, () => {
  console.log("express启动成功");
});

app の作成過程

元の図 074 · app の作成過程

ミドルウェアの登録

元の図 075 · ミドルウェアの登録

リクエストの処理過程

元の図 076 · リクエストの処理過程

元の図 077 · リクエストの処理過程

Koa フレームワーク

Koa の ctx は今のリクエストと返答を包みます。 Express Use ミドルウェアはそのまま使用できません。

元の図 078 · Koa フレームワーク

Koa の基本

元の図 079 · Koa の基本

javascript
const Koa = require("koa");

const app = new Koa();

// 注册中间件
// koa的中间件 两个参数 ctx next
app.use((ctx, next) => {
  ctx.body = "hahaha"
})

app.listen(6000, () => {
  console.log("koa服务器启动成功!");
});

Koa ミドルウェア

元の図 080 · Koa ミドルウェア

javascript
const Koa = require("koa");

const app = new Koa();

app.use((ctx, next) => {
  // 1.请求对象
  console.log(ctx.request);
  console.log(ctx.req);
  
  // 2.响应对象
  console.log(ctx.response);
  console.log(ctx.res);
  
  // 3.其他属性
  console.log(ctx.query);
})

app.listen(6000, () => {
  console.log("koa服务器启动成功!");
});

ルーターの使い方

元の図 081 · ルーターの使い方

javascript
const Koa = require("koa");
const KoaRouter = require("@koa/router")

const app = new Koa();

// 创建路由对象 统一前缀 /users
const userRouter = new KoaRouter({ prefix: "/users" });

// 在路由中注册中间件
userRouter.get("/:id", (ctx, next) => {
  ctx.body = "user lists"
});

// 让中间件生效
app.use(userRouter.routes())
// 错误方法会提示
app.use(userRouter.allowedMethods())

app.listen(6000, () => {
  console.log("koa服务器启动成功!");
});

params と query の解析

元の図 082 · params と query の解析

元の図 083 · params と query の解析

元の図 084 · params と query の解析

元の図 085 · params と query の解析

Multer でのファイルアップロード

元の図 086 · Multer でのファイルアップロード

Jing の F ファイルの配布

元の図 087 · Jing のファイルの配布

レスポンスデータ

元の図 088 · レスポンスデータ

エラー処理

元の図 089 · エラー処理

元の図 090 · エラー処理

元の図 091 · エラー処理

元の図 092 · エラー処理

元の図 093 · エラー処理

元の図 094 · エラー処理

元の図 095 · エラー処理

元の図 096 · エラー処理

Koa のオニオンモデル

async (ctx, next) 内で await next() を使うと、下流の終了後の上流の後半へ戻るオニオンモデルになります。 await を州とシーケンスと例外の伝放送が変わります。 コアドキュメント。

元の図 097 · Koa のオニオンモデル

MySQL データベース

データベース講義の画像を元の順序で残しています。接続先・アカウント・テーブル構造は元の講義環境のものです。実行には自分の MySQL 環境と対応するデータを用意します。

元の図 098 · MySQL データベース

元の図 099 · MySQL データベース

元の図 100 · MySQL データベース

元の図 101 · MySQL データベース

元の図 102 · MySQL データベース

元の図 103 · MySQL データベース

元の図 104 · MySQL データベース

元の図 105 · MySQL データベース

元の図 106 · MySQL データベース

元の図 107 · MySQL データベース

元の図 108 · MySQL データベース

元の図 109 · MySQL データベース

元の図 110 · MySQL データベース

元の図 111 · MySQL データベース

元の図 112 · MySQL データベース

元の図 113 · MySQL データベース

元の図 114 · MySQL データベース

元の図 115 · MySQL データベース

元の図 116 · MySQL データベース

元の図 117 · MySQL データベース

元の図 118 · MySQL データベース

元の図 119 · MySQL データベース

元の図 120 · MySQL データベース

元の図 121 · MySQL データベース

元の図 122 · MySQL データベース

元の図 123 · MySQL データベース

元の図 124 · MySQL データベース

元の図 125 · MySQL データベース

元の図 126 · MySQL データベース

元の図 127 · MySQL データベース

元の図 128 · MySQL データベース

元の図 129 · MySQL データベース

元の図 130 · MySQL データベース

元の図 131 · MySQL データベース

元の図 132 · MySQL データベース

元の図 133 · MySQL データベース

元の図 134 · MySQL データベース

元の図 135 · MySQL データベース

元の図 136 · MySQL データベース

元の図 137 · MySQL データベース

元の図 138 · MySQL データベース

元の図 139 · MySQL データベース

元の図 140 · MySQL データベース

元の図 141 · MySQL データベース

元の図 142 · MySQL データベース

元の図 143 · MySQL データベース

元の図 144 · MySQL データベース

元の図 145 · MySQL データベース

元の図 146 · MySQL データベース

元の図 147 · MySQL データベース

元の図 148 · MySQL データベース

元の図 149 · MySQL データベース

元の図 150 · MySQL データベース

元の図 151 · MySQL データベース

元の図 152 · MySQL データベース

元の図 153 · MySQL データベース

元の図 154 · MySQL データベース

元の図 155 · MySQL データベース

元の図 156 · MySQL データベース

元の図 157 · MySQL データベース

元の図 158 · MySQL データベース

元の図 159 · MySQL データベース

実践プロジェクト

元のプロジェクト手順と構成図を、各モジュールの復習用に残しています。記載の API・ファイル・データベースはこのブログが提供するサービスではありません。

元の図 160 · 実践プロジェクト

元の図 161 · 実践プロジェクト

元の図 162 · 実践プロジェクト

元の図 163 · 実践プロジェクト

元の図 164 · 実践プロジェクト

元の図 165 · 実践プロジェクト

元の図 166 · 実践プロジェクト

元の図 167 · 実践プロジェクト

元の図 168 · 実践プロジェクト

元の図 169 · 実践プロジェクト

元の図 170 · 実践プロジェクト

元の図 171 · 実践プロジェクト

元の図 172 · 実践プロジェクト

元の図 173 · 実践プロジェクト

元の図 174 · 実践プロジェクト

元の図 175 · 実践プロジェクト

元の図 176 · 実践プロジェクト

元の図 177 · 実践プロジェクト

元の図 178 · 実践プロジェクト

元の図 179 · 実践プロジェクト

元の図 180 · 実践プロジェクト

元の図 181 · 実践プロジェクト

元の図 182 · 実践プロジェクト

元の図 183 · 実践プロジェクト