LoginSignup
0
0

More than 1 year has passed since last update.

1-Node.js立ち上げ

Posted at

Node.js×Expressでにアプリ開発の手順書を記録しておく

1ファイルを作成
2ファイルにcdコマンドで移動する。
3以下のコマンドを実行する

npm install express-generator -g

実行が完了していれば、
4以下のコマンドも実行する。(pugをejsに書き換えている)

express --view=ejs myapp

5「myapp」というフォルダのなかに
・bin
・node_modules
・public
・routes
・views
フォルダと
・app.js
というファイルが作成される
6この後 appフォルダにcdコマンドで移動して、

npm install

を行う

7

npm start

が実行できるようになる。

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