categoljについて

Download CategoLJについて

If you can't read please download the document

Upload: toshiaki-maki

Post on 10-May-2015

1.638 views

Category:

Technology


3 download

TRANSCRIPT

  • 1.CategoLJBlog System Written in Clojurehttps://github.com/making/categolj
    @making

2. contents
CategoLJ


3. CategoLJ
4. CategoLJ
Categorizer written in Clojure

Wiki
5. Categol
CommonLisp

cl-build


DB
HTML (cl-who)
hunchentootblog
6. Clojure
http://rd.clojure-users.org

Html(hiccup)
7. CategoLJClojure
SHTML
8. CategoLJ
CategoLURLClojure
Clojure
AP

Clojure
Markdown

RDBNoSQL
HTMLHTML5
http://blog.ik.am

9.
10. Compojure
Ring
Enlive
DataAccess
request
Ring
response
11. Compojure
Ring
Enlive
DataAccess
request
Ring
response
12. theme
Compojure
Ring
Enlive
DataAccess
request
Ring
response
13. Clojure1.3
Namespace
clojure.string
clojure.java.io
contrib

clojure.contrib.logging1.3slf4j
14.
15.
DB

16. DataAccess
(defprotocolDataAccess
;; entry
(get-entry-by-id [this id])
(get-entries-by-page [this page count])
(get-entries-only-id-title [this count])
(get-total-entry-count [this])
(get-categorized-entries-by-page [this category page count])
(get-categorized-entry-count [this category])
(insert-entry [this entry])
(update-entry [this entry])
(delete-entry [this entry])
(get-all-category-list [this])
;; user
(auth-user [this user]))
API
DB
17. (config.clj)
{:theme "default",
:title "CategoLJ",
:port 8944,
;; MirageDataAccess
:daccess {:ns am.ik.categolj.daccess.mirage.daccess,
:params {
;; MySQL
;; :db {:classname "com.mysql.jdbc.Driver"
;;:subprotocol "mysql"
;;:subname "//localhost/categolj"
;;:user "root"
;;:password ""}
;; HSQLDB
:db {:classname "org.hsqldb.jdbcDriver"
:subprotocol "hsqldb"
:subname "mem:categolj"
:user "sa"
:password ""}
}},
}

18. MongoDB
;; Mongodb
:daccess {:ns am.ik.categolj.daccess.mongodb.daccess
:params {
:db "categolj"
:host "localhost
:port 27017}}
19. Cassandra
;; Cassandra
:daccess {:ns am.ik.categolj.daccess.cassandra.daccess
:params {
:keyspace "categolj"
:host "localhost"
:port 9160}}

20.
resource/theme//
all-categories.html
delete.html
edit.html
footer.html
form.html
header.html
layout.html
logged-in-menu.html
logged-out-menu.html
login.html
main.html
sidebar.html


21.



$ git clone git://github.com/making/categolj.git
$ leindeps
$ leinjavac
$ lein run server
Accsess http://localhost:8944