clog/tutorial
2021-01-18 15:11:38 -05:00
..
01-tutorial.lisp Prevent GC using (run body) 2021-01-12 15:05:00 -05:00
02-tutorial.lisp Prevent GC using (run body) 2021-01-12 15:05:00 -05:00
03-tutorial.lisp Prevent GC using (run body) 2021-01-12 15:05:00 -05:00
04-tutorial.lisp Prevent GC using (run body) 2021-01-12 15:05:00 -05:00
05-tutorial.lisp Prevent GC using (run body) 2021-01-12 15:05:00 -05:00
06-tutorial.lisp Prevent GC using (run body) 2021-01-12 15:05:00 -05:00
07-tutorial.lisp Prevent GC using (run body) 2021-01-12 15:05:00 -05:00
08-tutorial.lisp Touch events 2021-01-14 12:50:16 -05:00
09-tutorial.lisp Move span to use :content 2021-01-15 17:06:50 -05:00
10-tutorial.lisp Basic canvas 2021-01-15 00:49:52 -05:00
11-tutorial.lisp Handle static-root better. 2021-01-18 15:11:38 -05:00
README.md Attaching HTML files to CLOG 2021-01-17 20:44:52 -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
  • 05-tutorial.lisp - The event target, reusing event handlers
  • 05-tutorial.lisp - Using connection-data-item
  • 06-tutorial.lisp - Tasking and events
  • 07-tutorial.lisp - My first CLOG video game (and handling disconnects)
  • 08-tutorial.lisp - Mice Love Containers
  • 09-tutorial.lisp - Tabs, pannels and forms
  • 10-tutorial.lisp - Canvas
  • 11-tutorial.lisp - Attaching to existing HTML