A simple server example showing how to create routes, return status codes, deal with mime types, and serve static files, without any packages or frameworks.
npm:
git clone git@github.com:cmda-be/course-17-18.git
cd course-17-18/examples/plain-server
npm start
The following commits show how this example was created:
a201109
add initial codec25672a
add about route6fa184f
add initial support for unfound routes5befbbc
refactor routes47143bd
add support for serving static files42537eb
add support for mime-types and css