mattwynne / js-testing-training

0 stars 1 forks source link

Building a node server - start with hello world #20

Open mattwynne opened 11 years ago

mattwynne commented 11 years ago

When we did this at Amazon, we went straight into using nodestatic. It might be better to start with a very basic "hello world" web server, then get it to serve the HTML page using fs.readFile(), then finally use nodestatic so we get all the CSS / JS etc. Baby steps.

jbpros commented 11 years ago

Agreed. The justification for a static asset server middleware like nodestatic will become obvious as soon as we want to serve those CSS/JS/etc files.

baby steps