Commit 5e367b05 authored by Currell Berry's avatar Currell Berry

default *install-dir* to startup dir to reduce setup steps. add screenshot.

parent 71433d66
......@@ -5,15 +5,19 @@ About
------------------------------------------
This program creates karnaugh maps from truth table inputs. The program is accessible online at my website www.cvberry.com, but it's also easy to run locally.
Screenshot
-------------------------------------------
![Screenshot](img/kmapper-screenshot.png?raw=true "Screenshot")
Installation and Running
------------------------------------------
This program includes a web interface. In a common lisp environment with quicklisp
installed, to run the program.
1. set the *install-dir* variable below to the root directory you'd like hunchentoot to
use to process web requests.
1. set the *install-dir* variable below to the root directory you'd like hunchentoot to use to process web requests. By default this will be the directory from which you started lisp (*default-pathname-defaults*).
2. change the uri "/lisp/ttablepost" to "ttablepost" if you're running hunchentoot as
standalone without a proxy.
2. call (load "kmapper.lisp") from the REPL, and navigate to localhost:8080
2. call (load "kmapper.lisp") from the REPL, and navigate to localhost:8084
in a web browser.
Quicklisp will handle installing the dependencies. If you don't have quicklisp, google
......
......@@ -6,7 +6,7 @@
;;;; installed, running the program should be as simple
;;;; 1. set the *install-dir* variable below to the directory in which you downloaded
;;;; the project.
;;;; 2. calling (load "kmapper.lisp") from the REPL, and navigating to localhost:8080
;;;; 2. calling (load "kmapper.lisp") from the REPL, and navigating to localhost:8084
;;;; in a web browser.
;;;; Quicklisp will handle installing the dependencies "
;;;;
......@@ -41,7 +41,7 @@
(in-package :kmapweb)
;;replace this with your installation directory...
(defvar *install-dir* #p"/var/wwwlisp/")
(defparameter *install-dir* *default-pathname-defaults*)
(setf *dispatch-table*
(list #'dispatch-easy-handlers))
......@@ -65,7 +65,7 @@
output))
(defvar *macceptor* (make-instance 'hunchentoot:easy-acceptor :port 8080
(defvar *macceptor* (make-instance 'hunchentoot:easy-acceptor :port 8084
:document-root *install-dir*
:access-log-destination *terminal-io*
:message-log-destination *terminal-io*))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment