nodemon을 설치하고 반영한다.
npm i nodemon
{
"dependencies": {
"ejs": "^3.1.8",
"express": "^4.18.1",
"nodemon": "^2.0.19"
},
"name": "login-lecture",
"version": "1.0.0",
"main": "app.js",
"bin": {
"login-lecture": "bin/www.js"
},
"scripts": {
"start": "nodemon ./app/bin/www.js",
"test": "echo \\"Error: no test specified\\" && exit 1"
},
"keywords": [],
"author": "",
"license": "MIT",
"description": ""
}
서버가 잘 구동되는지 확인한다.
잘 되었다면 git add, commit, push를 진행한다.