LoginSignup
0
0

More than 3 years have passed since last update.

expressインストール[node.js - ejs]

Posted at

Expressのインストール

(1)npmの初期化

npm init
=>package.jsonが生成される

(2)Expressのインストール

npm install express --save

--saveオプションを使うとインストール対象のバージョン情報がpackage.jsonに記録されます。

ファイルの命名と配置ルールについて

Expressを使う場合は、メインとなるファイルは”app.js"とするのが一般的です。

また、テンプレートファイルはアプリケーションフォルダ内に"views"というフォルダを用意して、全てその中に配置するルールになります。

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