Use Yaws to Serve Web Pages Generated with Common Lisp
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ebin
examples
include
lfe @ 3928702
src
www
yaws @ 467a675
ymacs @ 708a858
.gitmodules
COOKIE
LICENSE
README
erlcompile
lisp-on-yaws.asd
yawstart

README

Copyright 2011 Jonathan Smith may be redistributed in whole or in part under a BSD or MIT license.

Included projects (Yaws, LFE, Ymacs and DynarchLIB) are subject to their respective copyrights.

To run:

Configure/Make LFE and Yaws in '3rdparty' directories, using appropriate directives.

Install CLERIC via quicklisp. 
	Currently working with 2011-06-19, does not work with 2011/07/30 as of 2011/08/02.
In main directory run:
./erlcompile
./yawstart

in the resulting erlang terminal, run 
ybed_sup:start_link().

Go to the common lisp directory and open 'yaws_embed.lisp'.

Go to the examples directory and open 'examples.lisp' in an emacs session.

start slime

(ql:quickload "CLERIC") in the resulting terminal.

Edit the setfs at the top of examples.lisp so that they match your computer's configuration.
(Specifically the cookie path, and the yaws node computer name).

Compile and load yaws_embed and examples lisp files. (In that order).
Type (init) into the repl and press enter.
Type (add-math-appmod) into the repl and press enter.

If everything went well:
 you should be able to visit http://0.0.0.0:8080/hello_world in a web browser and get 'hello world'
 you should be able to visit http://0.0.0:8080/math/+/2/3/ and get '5'.

If everything did not go well... let me know!

yaws: http://yaws.hyber.org/
lisp flavored erlang: https://github.com/rvirding/lfe
ymacs: http://www.ymacs.org/
DynarchLib http://www.dynarchlib.com/