Sample code for the MallorcaJS workshop of Jan 15th 2015
There are 4 snippets of code in this repository:
- interpreter: shows how to deal with files sync and asynchronously.
- http: shows three ways of creating a simple http server
- net: creates a very simple server that can be accessed via telnet
- unit-tests: shows how to export a function and how to unit-test it
Run npm install
from the root folder of the project in order to install dependencies.
Run grunt
from the root folder to jshint the code.
Run npm test
from the root folder to run the tests.
Happy coding!!