This repository is based on my Node.js examples that I've written. This repository collects all the demos and some more to a single, self-served application.
main.js
: Runs a web server and provides event handling and path based redirection. Currently a little primitive, but works.autoIndexer.js
: Generates the main page of the application. Searches forjs
files and creates the HTML file to show.events.js
: Demonstrates the event structure of the Node.js.multipleEvents.js
: Demonstrates multiple event handlers per event.syncAndAsync.js
: Shows behavior of synchronized and asynchronized calls.buffers.js
: Show some capabilities of buffers in Node.js.
- Demo is developed in Node's LTS version obtained from official repositories.
- This demo uses
glob
by isaacs. I bundled a version in the git however, the demo is not tied to specific version.glob
is used byautoIndexer
to search forjs
files.
Running the demo is easy.
- Clone the repository.
- Navigate to
src
directory. - Start the demo with
node main.js
. It should start.