LoginSignup
0
0

More than 3 years have passed since last update.

フレームワークexpressのインストールと起動

Posted at

初めに

以下コマンドでコンソール起動

vagrant up
vagrant ssh

次に

以下コマンドで Express application generatorをインストール

yarn global add express-generator@4.16.0

最後に

以下コマンドでファイルでファイル作成
hoge部分はファイル名

express --view=pug hoge

以下コマンドでPORT=8000で起動
http://localhost:8000/ にアクセスすると開ける

yarn install
DEBUG=hoge:* PORT=8000 yarn 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