Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 542 Bytes

File metadata and controls

21 lines (16 loc) · 542 Bytes

We should run npm init -y to start this project.

We'll also need to add the following to the package.json file:

"type": "module",

... and if we want to use nodemon like we did before, we should make the scripts key look like this:

  "scripts": {
    "start": "nodemon server.js"
  },

We also need to make sure we add the following to our server:

app.use(bodyParser.urlencoded({ extended: true }));

lest we make the same mistake Ryan did during the demo where he wasted twenty minutes of our time. What a jerk! >:(