0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

node.js練習#4

0
Posted at

今日やったこと

・expressでルーティングの設定
・外部ファイルの読み込み

学んだこと

・const userRouter = require("./routes/user");

で機能ごとのルーティングを分けて管理できる

・app.use("/user", userRouter);

/userから始まるurlがきたらuserのルーティングを外部ファイルのuserRouterに任せる処理

・テンプレートエンジンとは文章ファイル(htmlとか)にデータを読み込ませて動的なページするもの 例ejs, pug(パグ)

次やること

・動画の続き23:00~

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?