Development Environment

A Docker container running NixOS with a Nix Shell

A Nodejs

docker run --rm --volumes-from=nix -it -v $(pwd):/home -w /home -p 3000:3000 nixos/nix nix-shell -p nodejs

Express Framework

Bitcoin Notes

docker run --rm --volumes-from=nix -it -v $(pwd):/app -w /app -p 3000:3000 nixos/nix nix-shell /app/.config/node_express.nix"
  1. GitHub Gist

Debugging

Node Inspect

  1. node inspect app.js
  2. Node.js Docs for Debugger
    1. Comands etcetera.
  3. Open Chrome debugger chrome://inspect
    1. Open dedicated DevTools for Node

Testing

Code Snipets

Reference