-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathproject.clj
114 lines (94 loc) · 4.27 KB
/
project.clj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
(defproject guestbook "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:dependencies [[org.clojure/clojure "1.7.0-RC2"]
[selmer "0.8.2"]
[com.taoensso/timbre "3.4.0"]
[com.taoensso/tower "3.0.2"]
[markdown-clj "0.9.66"]
[environ "1.0.1"]
[compojure "1.3.4"]
[ring/ring-defaults "0.1.5"]
[ring/ring-session-timeout "0.1.0"]
[metosin/ring-middleware-format "0.6.0"]
[metosin/ring-http-response "0.6.2"]
[bouncer "0.3.3"]
[prone "0.8.2"]
[org.clojure/tools.nrepl "0.2.10"]
[ring-server "0.4.0"]
[ragtime "0.3.9"]
[instaparse "1.4.0"]
[yesql "0.5.0-rc2"]
[org.postgresql/postgresql "9.4-1201-jdbc41"]
[clj-recaptcha "0.0.2"]
[mavericklou/clj-facebook-graph "0.5.3"]
[org.clojure/data.json "0.2.6"]
[clj-http "2.0.0"]
[slingshot "0.12.2"]
[com.cemerick/url "0.1.1"]
[clojail "1.0.6"]
[buddy/buddy-hashers "0.10.0"]
]
:min-lein-version "2.0.0"
:uberjar-name "guestbook.jar"
:jvm-opts ["-server"]
;;enable to start the nREPL server when the application launches
;:env {:repl-port 7001}
:main guestbook.core
:plugins [[lein-ring "0.9.1"]
[lein-environ "1.0.0"]
[lein-ancient "0.6.5"]
[ragtime/ragtime.lein "0.3.8"]]
:ring {:handler guestbook.handler/app
:init guestbook.handler/init
:destroy guestbook.handler/destroy
:uberwar-name "guestbook.war"}
:profiles
{:uberjar {:omit-source true
:env {:production true
:db-spec {:classname "org.postgresql.Driver"
:subprotocol "postgresql"
:subname "//localhost:5432/test_db"
:user "test_user"
:password "qwe123"
:make-pool? true
:naming {:keys clojure.string/lower-case
:fields clojure.string/upper-case}
}
:github {:client-id "github-id"
:client-secret "github-secret"
:redirect-uri "http://localhost:3000/oauth/github/callback"
:scope "profile"}
:facebook {:client-id "client-id"
:client-secret "client-secret"
:redirect-uri "http://localhost:3000/oauth/facebook/callback"
:scope "email"}}
:aot :all}
:dev {:dependencies [[ring-mock "0.1.5"]
[ring/ring-devel "1.3.2"]
[pjstadig/humane-test-output "0.7.0"]
]
:repl-options {:init-ns guestbook.core}
:injections [(require 'pjstadig.humane-test-output)
(pjstadig.humane-test-output/activate!)]
:env {:dev true
:hostname "nil.camp"
:db-spec {:classname "org.postgresql.Driver"
:subprotocol "postgresql"
:subname "//localhost:5432/test_db"
:user "test_user"
:password "qwe123"
:make-pool? true
:naming {:keys clojure.string/lower-case
:fields clojure.string/upper-case}
}
:github {:client-id "github-id"
:client-secret "github-secret"
:redirect-uri "http://localhost:3000/oauth/github/callback"
:scope "profile"}
:facebook {:client-id "client-id"
:client-secret "client-secret"
:redirect-uri "http://localhost:3000/oauth/facebook/callback"
:scope "email"}
}
}})