V8 can run standalone or can be embedded into any C++ application... like Nodejs.
Nodejs includes a library called libuv that adds additional capabilities like IO.
In the browser its the Window Object.
In Nodejs it's called the Global and has methods that can be used out of the box, like (console.log(), setTimeout, etc).
Function statement vs Function Expression
Use the node fs module
Create a file in the root and call it readme.txt
For creating custom events
Temporary storage spot for a chunks of data that is being transferred from one place to another.
The buffer is filled with data, then passed along.
Transfers small chuncks od data at a time.
Increases performance in Node.
Writeable streams - allow node to write data to a stream.
Readable stream - allows node to read data from a stream.
Duplex = can read and write to a stream.
Create readable stream
Create writeable stream
Using Pipes with http server
Easy and flexible routing system.
Integrates with many templating engines.
Contains a middleware framework.
GET - app.get('route', fn)
POST - app.post('route', fn)
DELETE - app.delete('route', fn)
In the ejs template
Create a partials folder in the views folder and in that the file nav.ejs
Query parameters can be access on the req object
POST is a request method.
POST requests, ask the server to accept/store data which is enclosed in the body of the request.
Often used when submitting forms.
Require body-parser package to be installed