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練習#2

0
Posted at

今日やったこと

・restfulなwebapiの作成

学んだこと

・process.envで.envファイルに書いた変数を呼び出すことができる
require("dotenv").config();これを最初に書く必要がある

・req.params.idはurlにあるidの番号を取ってくるプロパティ
例:ユーザーが http://localhost:3000/users/123 にアクセスした場合
req.params.id の中身は "123" になる。

・parseInt()は文字列を整数に変換する関数

次やること

・動画の続き16: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?