origin
A REST API in Clojure reference json
{
"id" : "some id",
"title" : "some title",
"text" : "some text"
}
initialize the project
lein new compojure clojure-rest
then update project.clj
run the project
lein ring server
可以了,YA!
- server side update
-
接下來就改資料庫,可能的話還是用json server
-
kevin mai 的不能用,這個則不能debug, 能用但不是太理想。不然再 把firefox開的tab都試試
- 搞定了,可以debug了
-
frontend, kevin mai的接不下去了,沒法設定銜接的url
- server side update for frontend
- 搞定了,可以debug了
- 神奇了,這個是好的,kevin mai是壞的
- 可是這個不能debug,有點難用
- 可以印出來了!讚
FIXME
You will need Leiningen 2.0.0 or above installed.
To start a web server for the application, run:
lein ring server
Copyright © 2021 FIXME