express 초기세팅

  1. 초기 세팅

1. yarn init -y
2. touch app.js touch index.html
3. yarn add -D nodemon
4. yarn add express

package.json

{
  "name": "express",
  "version": "1.0.0",
  "main": "index.js",
  "scripts": {
    "start": "nodemon app"
  },
  "license": "MIT",
  "dependencies": {
    "express": "^4.18.2"
  },
  "devDependencies": {
    "nodemon": "^2.0.22"
  }
}

index.html

app.js

Last updated