프로젝트를 시작하면서 찾아본 내용들을 정리한다. 언젠가 또 볼 일이 있겠지?
npm init -y
npm install express --save # .gitignore 잊지말기
npm install nodemon --save-dev
nodemon index.js 를 실행하면 index.js 파일이 저장될 때 마다 서버가 자동으로 재시작 된다.
서버 소스코드를 깔끔하게 보려고 /src 폴더에 index.js파일을 생성하고 run script를 수정했다.
{
"start": "node ./src/index.js",
"dev": "nodemon ./src/index.js",
}
이제 npm run dev 명령으로 서버를 시작하면 된다.
그리고 리드미에 시작을 돕는 명령어를 정리했다.
## How to Start
quick start with commands below🧡
```bash
git clone <프로젝트 URL>
cd ./<프로젝트 이름>
npm install
npm run dev
```\