Nodebook - Minimalist Node REPL with web UI
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src First commit Sep 5, 2018
.gitignore First commit Sep 5, 2018
README.md Create README.md Sep 5, 2018
index.js First commit Sep 5, 2018
package-lock.json First commit Sep 5, 2018
package.json First commit Sep 5, 2018

README.md

nodebook

Nodebook - Minimalist Node REPL with web UI

What is it?

It's an in-browser REPL for Node.

Code's on the left, Console on the right. Click "Run" or press "Ctrl+Enter" or "Cmd+Enter" to run your code. The code is automatically persisted on the file system.

nodebook

The home lists the available Nodebooks. A Nodebook is a folder containing an index.js file.

home

Installation

$ git clone https://github.com/netgusto/nodebook
$ cd nodebook
$ npm install

Usage

Create a Nodebook

In a directory where your Nodebooks will be stored, simply create a folder containing a file named index.js. The dir name will be the nodebook name.

Run the REPL

# Default usage; local execution, bound to 127.0.0.1:8000
$ node . --notebooks path/to/notebooks
# open http://127.0.0.1:8000 in a browser
# Set bindaddress and port
$ node . --notebooks path/to/notebooks --bindaddress 0.0.0.0 -port 12000
# Execute code in disposable docker containers (node:alpine)
$ node . --notebooks path/to/notebooks --docker

Command line options

  • --notebooks: path to notebook folders; required
  • --bindaddress: IP address the http server should bind to; defaults to 127.0.0.1
  • --port: Port used by the application; defaults to 8000
  • --docker: Execute code in disposable docker containers instead of local system's Node; defaults to false