Running the UCW demo


Posted in: (Lisp) by ikki , last update on: 2010-01-23 17:58:52.189872

With the UCW source code is also included a demo program: demo/demo.lisp, which shows some of the functionalities of the framework.

This demo is mentioned in the getting-started.txt (doc/getting-started.txt) guide, under the ** Starting the demo title, here I share the steps I follow to put the demo up and running...

Here we assume you already had UCW installed, if don't please refer to this:
A quick guide to install and use UCW

Once you have a functional UCW, you need to change to the ucw-standard package:

CL-USER> (in-package ucw-standard)

UCW>_

Then load the demo application, which is located into the clbuild/source/ucw/demo/ path and it's named demo.lisp

C-c C-l

Load file: ~/clbuild/source/ucw/demo/demo.lisp

The Load path before is only for example, may be in a different location in your installation :)

And, finally, launch the demo application:

UCW> (startup-demo)

19:35          UCW INFO    Spawned new worker thread #
19:35          UCW INFO    Spawned new worker thread #
19:35          UCW INFO    Started standard-server # with backend #

Then open in your browser the following url:
http://localhost:9090/demo/index.ucw

And have fun playing with the demo.

Your browser should display something like this:


UCW demo

However that the demo is entitled "Lisp On Lines Web test suite", it is the demo included in UCW :)