2. `app.listen()` should always go at the end of your server-side `index.js` file
3. if you are running a web server to serve your HTML files, remember you don't need to have a `localhost` reference in your `fetch()` requests: e.g.
```js
await fetch("http://localhost:3000/api/dogs", ...)
Things to remember:
package.json
needs a "start" script otherwise your app won't run!{ "name": "todo-app", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "start": "node index.js", }, "keywords": [], "author": "", "license": "ISC", "dependencies": {}, "devDependencies": {} }
can just be: