Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 740 Bytes

README.md

File metadata and controls

38 lines (25 loc) · 740 Bytes

NodeJS Workshop Exercises

Setup

git clone https://github.com/8pointers/node-js-workshop-exercises.git
cd node-js-workshop-exercises
npm install

node lib/01-hello-world

Debugging

Starting with inspector enabled:

node --inspect lib/02-web-server/

If you use Chrome, either navigate to chrome://inspect or install Node.js V8 --inspector Manager (NiM) extension

Docker

To build the image:

docker build -t <your username>/node-web-app .

To run the image:

docker run -p 49160:3000 -d <your username>/node-web-app

docker ps
docker logs <container id>