프로젝트
GitHub에서 보기
fukamachi/clack
소개
Common Lisp용 웹 서버 추상화 계층
시스템 및 인프라측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- -3
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalClack - Web Application Environment for Common Lisp
Clack is a web application environment for Common Lisp inspired by Python's WSGI and Ruby's Rack.
Usage
(defvar *handler*
(clack:clackup
(lambda (env)
(declare (ignore env))
'(200 (:content-type "text/plain") ("Hello, Clack!")))))
Open your web browser and go to http://localhost:5000/. You should get "Hello, Clack!".
To stop the server, use (clack:stop *handler*).
Command-line interface
Clack provides a script to start a web server. It's useful when you deploy to production environment.
NOTE: Install Roswell before as it depends on it.
When you execute ros install clack, it copies clackup script to $HOME/.roswell/bin. Make sure the path is in your shell $PATH.
$ ros install clack
$ which clackup
/Users/nitro_idiot/.roswell/bin/clackup
$ cat <<EOF >> app.lisp
(lambda (env)
(declare (ignore env))
'(200 (:content-type "text/plain") ("Hello, Clack!")))
EOF
$ clackup app.lisp
Hunchentoot server is started.
Listening on localhost:5000.
Installation
(ql:quickload :clack)
Documentation
Resources
Server
How to contribute
See CONTRIBUTING.md.
See Also
- Lack: Clack application builder
Author
- Eitaro Fukamachi ([email protected])
Copyright
Copyright (c) 2011 Eitaro Fukamachi & contributors
License
Licensed under the MIT License.
관련 프로젝트 살펴보기
불러오는 중…