node-girls / node-workshop Goto Github PK
View Code? Open in Web Editor NEWBuild a CMS in Node with no frameworks.
Home Page: https://nodegirls.com
Build a CMS in Node with no frameworks.
Home Page: https://nodegirls.com
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.
Proposition:
Step 5 claims that there is a link tag in index.html but there isn't one. Happy to make a pr for this
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.
Add links to keywords on each steps.
Do we need to add link to workshop-cms-complete at the bottom of the readme?
As discussed here I proposed the following changes :
Is it ok for me to make a pull request to fix these points?
At l.29 it could be useful to remind the reader that they'll need to create a way to listen out for the specific url of the form (i.e. a new else if statement).
Should we add some links to good tutorials about error handling in Node.js?
Do you think we need to break step 10 into 2 steps : saving data in step10, retrieving data step11 and a bit of explanation on frontend side?
(but it is referenced in the index.html)
Proposition of reformat:
Create branches with relevant code/files
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
andresponse
are instances of the two different types ofIncomingMessage
object)
Not sure why that is but many of us lost it at that stage when merging. Might be better to include it also in subsequent steps and not just step 5? I'm not sure how Git deals with merging when files are deleted.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.