Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 843 Bytes

README.md

File metadata and controls

29 lines (23 loc) · 843 Bytes

biwascheme-repl-demo

A simple demo that shows intaractive development with biwascheme using REPL.

Quick Start

  1. Clone this repository.
$ git clone https://github.com/ihuku/biwascheme-repl-demo.git
$ cd biwascheme-repl-demo
$ npm install ws express
  1. Start web server.
$ node server.js
  1. Access to http://localhost:8901 in your browser. You can see Hello, World! page, and in the developer console, same messsage is also printed.

  2. Hot reloading feature: Edit src/index.html or app.scm as you like. Web browser detects the changes, then reloads automatically.

  3. REPL feature: Open another terminal and start repl. You can input lisp form that is evaluated in the browser.

$ node repl.js
biwas> (+ 1 2)
// => 3
biwas> (set-content! "p" "Modified Hello, World!!!")
// => web page is changed