mmontone / cl-rest-server

Serve REST APIs from Common Lisp
http://mmontone.github.io/cl-rest-server/cl-rest-server/
MIT License
66 stars 9 forks source link

Installation Issues #5

Open artforlife opened 6 years ago

artforlife commented 6 years ago

I am trying to follow your installation instructions and am confused about what you mean by:

Download the source code from https://github.com/mmontone/cl-rest-server and point .asd system definition files from ./sbcl/system (ln -s ) and then evaluate:

(require :rest-server)

What exactly should one do? I tried placing the directory inside my Quicklisp directory which contains all Quicklisp packages, but am not able to get it working.

P.S. Is the library still supported?

mmontone commented 6 years ago

Hello. Sorry for the late response. I've been on vacations.

You can install rest-server like you install any other lisp project.

One option is to put rest-server folder inside ~/quicklisp/local-projects/ directory. Then do (ql:quickload :rest-server)

If it doesn't work, please let me know which is the error you are getting.

About the library being supported, I've used it for some of my personal projects, but I can't say it is production level or anything, and I don't know of other people using it unfortunately. It should work in general, but there are things to improve. For how to use, I think it is better to look at the tests than to the docs, since the implementation may have varied with respect to the docs. You'll have to use it at your own risk.

vxe commented 6 years ago

If you take the local project approach you may have missing deps. New to cl but this got the project loaded

(progn (mapcar (lambda (package)
                 (ql:quickload package))
               '(:hunchentoot
                 :alexandria
                 :log5
                 :cl-json
                 :cxml
                 :local-time
                 :split-sequence
                 :parse-number
                 :string-case
                 :drakma
                 :cl-who
                 :ironclad
                 :babel
                 :closer-mop
                 :group-by
                 :chronicity
                 :net-telent-date
                 :md5
                 :cl-annot
                 :dynamic-mixins
                 :cl-oauth
                 :trivial-mimes
                 :access
                 :string-case
                 :cl-algebraic-data-type))
       (require "rest-server"))