[E] Web servers
This is a collection of example programs that aims to learn you the following:
- How to start and run various webservers
- How to build a webserver in Node, the first steps
- How to use GET, POST, PUT, PATCH, DELETE toward a REST API
Each example program has a README.md that explains the details of the program.
The basic idea is to study the example programs, try to execute it and then inspect the source code and learn from it.
Each example has a video recording attached.
Web servers, a collection to try out
The document "Web servers, a collection to try out" contains examples on how to start and try out a collection of web servers. Some are run using docker and some can be run directly on the commandline.
The idea is to see how they work and then knowing that you have some starter examples here in the example repo when you need it.
Build own web/json server in Node
The example src/node-server/small-node-webserver
showing various ways of creating a small Node webserver dealing with requests, responses, querystring and request body.
Analyse HTTP request using fetch
The example src/fetch-api-request-methods
uses a json-server and is split into several example programs where each program focus on each HTTP request method as GET, POST, PUT, PATCH, DELETE.