DISCLAIMER: This repository hosts the code that was developed as part of my master thesis. It needs refactoring, so, for now, it only serves as a demo. This README only provides local setup instructions.
- Linux OS (because it has not been tested in other OSes)
- Clozure Common Lisp
- Browser supporting WebGL
These libraries are:
You can install these libraries manually or using a library manager like Quicklisp . Just make sure that your Common Lisp libraries are in a directory that ASDF can find.
Also, make sure that this repo is cloned in a directory ASDF can find . In the commands below, it is assumed that you cloned this repo in $HOME/common-lisp
.
Supposing that ccl
starts your Clozure Common Lisp:
$ ccl
Then inside the Lisp REPL issue the following commands (?
stands for the REPL prompt):
? (require 'asdf) ? (asdf:load-system "kon") ? (in-package :kon) ? (set-server "~/common-lisp/kon/www/" 8080)
Now, open your browser at http://localhost:8080
To stop the server, you can either issue in REPL:
? (stop-server)
or you can quit Lisp, which is set to also stop the web server:
? (ccl:quit)