Giter Club home page Giter Club logo

node-workshop's Issues

Optimise for using course remotely

Hey, I've been trying to follow this workshop but am visiting family and don't have the luxury of a mentor/study-buddy. I think that this workshop could be much improved for independent learning by including what the server.js file contains at the end of the 5th and 6th Stages.

I've got to Stage 5/6 but I can't make sense of what's going on as I don't think my code matches what the workshop is doing at the moment.

Change name of the handler function to router

From points raised from Founders and Coders students whilst doing this workshop (documented in foundersandcoders/master-reference#781) we would like to change the name of the handler/handler.js function/file to router/router.js.

The reasoning would be that this function is what handles the routing of the request (via the if(endpoint === "/") etc block). The logic for actually handling each request (serving resources etc) can be abstracted into separate functions, but the function directly passed to http.createServer always has to deal with routing.

The work needed for this would be to change all references to the handler function or the handler.js file to router or router.js respectively.

Error handling

Should we add some links to good tutorials about error handling in Node.js?

Stretch readme

Proposition:

  • Add examples how to modularise project structure
  • Add links to our previous workshop from November
  • Reformat
  • Add references where to go next
  • Add best practise example: 'use strict' etc

Main readme enhancement

Proposition of reformat:

  • add node-girls logo
  • reformat into what, why and how
  • add explanation that this tutorial is very basic for the sake of simplicity
  • add bits about stretch goals readme (best practise structure)
  • add references to where find more useful tutorials (linked our node-girls tutorials)
  • add reference to cheatsheet
  • add maybe steps how to install node?

Link specifically to req/res in unclear node http module documentation

In week 7, we found that it is difficult for people to find the authoritative documentation on request objects, as they are described in the node docs as message or IncomingMessage (which is a type which could be either ClientRequest or ServerResponse )
Proposal:
In 'What is a handler function?' in Step 3, include:

(request and response are instances of the two different types of IncomingMessage object)

Step10 readme

  • explain in more detail about what steps they need to take , what they need to be aware, hints

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.