{"action":"created","issue":{"url":"https://api.github.com/repos/azat-co/expressworks/issues/98","labels_url":"https://api.github.com/repos/azat-co/expressworks/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/azat-co/expressworks/issues/98/comments","events_url":"https://api.github.com/repos/azat-co/expressworks/issues/98/events","html_url":"https://github.com/azat-co/expressworks/issues/98","id":116616428,"number":98,"title":"STATIC - confused about instructions - where to learn more","user":{"login":"bessieatrazoyo","id":15472059,"avatar_url":"https://avatars.githubusercontent.com/u/15472059?v=3","gravatar_id":"","url":"https://api.github.com/users/bessieatrazoyo","html_url":"https://github.com/bessieatrazoyo","followers_url":"https://api.github.com/users/bessieatrazoyo/followers","following_url":"https://api.github.com/users/bessieatrazoyo/following{/other_user}","gists_url":"https://api.github.com/users/bessieatrazoyo/gists{/gist_id}","starred_url":"https://api.github.com/users/bessieatrazoyo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bessieatrazoyo/subscriptions","organizations_url":"https://api.github.com/users/bessieatrazoyo/orgs","repos_url":"https://api.github.com/users/bessieatrazoyo/repos","events_url":"https://api.github.com/users/bessieatrazoyo/events{/privacy}","received_events_url":"https://api.github.com/users/bessieatrazoyo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-12T18:56:11Z","updated_at":"2015-11-13T15:08:51Z","closed_at":null,"body":"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.\r\n\r\nFor example, Exercise 2 of 8 (static) says:\r\n\r\nPlease don't use ANY routes like app.get. ONLY static.\r\n\r\nI wonder:\r\n1. What is a route?\r\n2. How can I learn about app?\r\n3. Static?  Static as opposed to dynamic.  What does that mean?\r\n\r\nYour solution must listen on the port number supplied by process.argv[2].\r\n\r\nI wonder:\r\n4. What listens?\r\n5. Is this like the Hello World one where I used this:\r\nvar app = express();\r\n...\r\napp.listen(process.argv[2]);\r\n\r\nThis is how you can call static middleware:\r\n\r\nI wonder:\r\n6. What is static middleware?\r\n7. Where can I learn about it?\r\n\r\nFor this exercise expressworks will pass you the path:\r\n\r\n    app.use(express.static(process.argv[3] || path.join(__dirname, 'public')))\r\n\r\nI wonder:\r\n8. Is app var app = express();?\r\n9. If so, what is express?\r\n10.  Where did the path variable come from?\r\n\r\nThis 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.\r\n"},"comment":{"url":"https://api.github.com/repos/azat-co/expressworks/issues/comments/156456717","html_url":"https://github.com/azat-co/expressworks/issues/98#issuecomment-156456717","issue_url":"https://api.github.com/repos/azat-co/expressworks/issues/98","id":156456717,"user":{"login":"bessieatrazoyo","id":15472059,"avatar_url":"https://avatars.githubusercontent.com/u/15472059?v=3","gravatar_id":"","url":"https://api.github.com/users/bessieatrazoyo","html_url":"https://github.com/bessieatrazoyo","followers_url":"https://api.github.com/users/bessieatrazoyo/followers","following_url":"https://api.github.com/users/bessieatrazoyo/following{/other_user}","gists_url":"https://api.github.com/users/bessieatrazoyo/gists{/gist_id}","starred_url":"https://api.github.com/users/bessieatrazoyo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bessieatrazoyo/subscriptions","organizations_url":"https://api.github.com/users/bessieatrazoyo/orgs","repos_url":"https://api.github.com/users/bessieatrazoyo/repos","events_url":"https://api.github.com/users/bessieatrazoyo/events{/privacy}","received_events_url":"https://api.github.com/users/bessieatrazoyo/received_events","type":"User","site_admin":false},"created_at":"2015-11-13T15:08:51Z","updated_at":"2015-11-13T15:08:51Z","body":"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."}}