clog/tutorial
2021-01-06 02:13:34 -05:00
..
01-tutorial.lisp A clog-body is passed to on-new-window 2021-01-05 22:45:06 -05:00
02-tutorial.lisp Launch incoming messages as new threads to allow queries to work in an event. 2021-01-06 01:53:55 -05:00
03-tutorial.lisp Tutorial 03 2021-01-06 02:13:34 -05:00
README.md Tutorial 03 2021-01-06 02:13:34 -05:00

To run a tutorial, start emacs/slime or your CL Lisp in the common-lisp/clog directory:

CL-USER> (ql:quickload :clog)
To load "clog":
  Load 1 ASDF system:
    clog
; Loading "clog"
...........................
(:CLOG)

Load the demo:

CL-USER> (load "/Users/dbotton/common-lisp/clog/tutorial/01-tutorial.lisp")
#P"/Users/dbotton/common-lisp/clog/tutorial/01-tutorial.lisp"

Start the demo:

CL-USER> (clog-user:start-tutorial)
Hunchentoot server is started.
Listening on 0.0.0.0:8080.
HTTP listening on : 0.0.0.0:8080
HTML Root         : static-files/
Boot file default : /boot.html

Most demos startup a browser, if not use http://127.0.0.1:8080

Tutorial Summary

01-tutorial.lisp - Hello World 02-tutorial.lisp - Closures in CLOG 03-tutorial.lisp - Events fire in parallel