Skip to content

JonathanSmith/Lisp-on-Yaws

Repository files navigation

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/

About

Use Yaws to Serve Web Pages Generated with Common Lisp

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published