Skip to content

My solutions to Node.js assignments from a Node.js course

Notifications You must be signed in to change notification settings

nalutm/time-to-practice-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Node.js Assignments

My solutions to assignments from the Node.js course by Maximilian Schwarzmüller.

Table of Contents

The Basics

  1. Spin up a Node.js-driven Server (on port 3000)
  2. Handle two Routes: "/" and "/users"
    • Return some greeting text on "/"
    • Return a list of dummy users (e.g. <ul><li>User1</li></ul>)
  3. Add a form with a "username" <inpu>to the "/" page and submit a POST request to "/create-user" upon a button click
  4. Add the "/create-user" route and parse the incoming data (i.e. the username) and simply log it to the console

Source code

Express

Assignment 01

  1. Create a npm project and install Express.js (Nodemon if you want)
  2. Create an Express.js app which funnels the requests through 2 middleware functions that log something to the console and return one response
  3. Handle requests to "/" and "/users" such that each request only has one handler/middleware that does something with it (e.g. send dummy response)

Source code

Assignment 02

  1. Create a npm project and install Express.js (Nodemon if you want)
  2. Create an Express.js app which servers two HTML files (of your choice/with your content) for "/"and "users".
  3. Add some static (.js or .css) files to your project that should be required by at least one of your HTML files.

About

My solutions to Node.js assignments from a Node.js course

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published