Closed bessieatrazoyo closed 8 years ago
The best place to start is with the command: expressworks help
This will give you a link to the API documentation and another to a book written by azat-co.
API docs: http://expressjs.com/api.html Express.js Guide: http://expressjsguide.com
The API docs should answer your questions:
Hope this helps.
Thank you very much the links to expressjs.com is what I was looking for. It will be a while before I can get back to it, but I'll post how it went when I do. Keep it open for now.
Evan Hahn's blog post: http://evanhahn.com/understanding-express/ helped me out.
@TylerMoeller thanks ;)
I am finding the ExpressWorks instructions incomprehensible. Perhaps I am missing some prerequisites. I’ve written out my questions below to show the level of ignorance I am coming to this learning session with. If you have suggestions about where to go to learn what I need before I start, please let me know.
For example, Exercise 2 of 8 (static) says:
Please don't use ANY routes like app.get. ONLY static.
I wonder:
Your solution must listen on the port number supplied by process.argv[2].
I wonder:
This is how you can call static middleware:
I wonder:
For this exercise expressworks will pass you the path:
I wonder:
This what I think is supposed to happen: process.argv[3] points to an HTML file. I am supposed get this HTML file and send it back in a response. I’m supposed to wait for a request from process.argv[2], but I don’t know if I’m supposed to parse that request in any way.