REQUIRED

  • Create a new project using npm init.

  • Install express and save it to your package.json file using --save.

  • Create an express server that responds to the root get request ('/') with "Hello from the web server side...".

  • Listen on port 3000.

  • Use express.static to serve files from a folder named public in the root of your project.

  • Create an index.html file.

  • Create a styles.css file in a css directory in public.

  • Create an app.js file in a js directory in public.

  • Create your own middleware using app.use that console.logs every req.url and passes flow to the next function

ADVANCED

  • Add Bootstrap to your index.html.

  • Create a form that posts to a route on your express server.

  • Write the values from the form post to a json file on your server.

  • Remember to set the action of the form to your route.

  • Change the method of the form to POST.

  • Create a route /formsubmissions that reads the file and responds with the results.