Skip to content

Latest commit

 

History

History
76 lines (72 loc) · 2.92 KB

README.md

File metadata and controls

76 lines (72 loc) · 2.92 KB

js-playground

A project to play around with JavaScript in Node.js. Will feature various common design patterns and libraries, and shows how you can host js, css and html files using Node.js.

Contents:

Running the code

You can run the following commands in your shell to get and run the code:

$ git clone https://github.com/SubliemeSiem/js-playground.git
$ cd js-playground
$ npm install
$ node start [portnumber]

where [portnumber] is the port which you want express to listen to (defaults to 4000 when left blank). To visit the page, browse to http://localhost:[portnumber]. To see the mobile or tablet version, browse to http://[ip]:[portnumber], where [ip] is the ip address of the system running Node.js, using a phone or tablet that is connected to the same network. To get ssl to work using let's encrypt, you'll need some sort of static address. This may be an address provided by a DDNS service, or a static ip address. Details about the configuration for let's encrypt can be found in (not implemented yet).