最初のノードサーバーの作成


必須ソフトウェアnode, express, npm, yarn, or any code editorステップ1:デスクトップまたは任意の場所のノードAPIのようなフォルダを作成するコンピュータ
ステップ2 :オープンVSエディタの端末(キーボードコマンド: Ctrl + ~)
その後、実行yarn init . クリエイトアpackage.json ファイル{
"name": "app",
"version": "1.0.0",
"license": "MIT",
}
ステップ3:作成index.js ファイルapp フォルダ
const express = require('express');
const app = express();

app.get('/', (req, res) => {
    res.send('I am from Node JS!!')
})
app.listen(4000, () =>{
    console.log('server created and listening port 4000')
})