- Create a Node server without any other framework
- Document commands/configuration to allow debugging with initial breakpoint
- Automated testing of web server testing status codes, headers, and response body
- Examples responses for HTML, JSON, and streams
git init
- Create
.gitignore
withnode_modules
added npm init
- Add
"type": "module"
topackage.json
- Add
dependencies
anddevDependencies
topackage.json
in logical order npm i -D jest eslint env-cmd prettier nodemon
npx eslint --init
- Change lint config to
.eslintrc.cjs
with rule'import/extensions': 'off',
- Configure
test
andlint
scripts - Add
.editorconfig
with the following
root = true
[*]
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
- Create
index.js
andwww.js