5
5

More than 5 years have passed since last update.

expressの開始方法

Last updated at Posted at 2014-05-18

単純な起動方法

  1. インストール
 npm install -g express
 npm install -g express-generator 
  1. テンプレート生成 ejsテンプレートで作成
 express -e TestApp
  1. 起動
 cd TestApp
 npm start

package.jsonを次のように編集すると、node-devで起動できる。

   "scripts": {
 -    "start": "node ./bin/www"
 +    "start": "node-dev ./bin/www"
   },
5
5
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
5
5