Course
Resources
About
Server
Learning Outcomes
Schedule
Learnings
Project
Resources
Node
Servers
Create a web server that responds to http requests
Conditionally set ports for our server based on the runtime environment
Read secrets from a .env file
Prevent sensitive data from being pushed to GitHub
Route requests to the correct handler function(s)
Serve different types of files to the client
Read information sent in a URL query string
Request bodies
Handle data received from a POST request
Handle streams of data sent from the client that don’t arrive all at once
Give descriptive names to HTML form input fields so that it is easy to access data in the request
Parse data sent via a default HTML form submission
Core modules
Use core Node modules
read files synchronously and asynchronously using Node’s fs module
Design
Design a website that is easy to use and to navigate
Identify common design patterns that aid usability
Build website navigation that demonstrates good usability
Make HTML elements look different on hover and focus to indicate their state to the user
Testing
Test our code with a third party library
Install libraries from npm as dev dependencies
Create package.json scripts that run our tests
Developer Toolkit
User stories
Write user stories with clearly defined acceptance criteria