Skip to content

Commit ecae028

Browse files
committed
init
0 parents  commit ecae028

File tree

6 files changed

+1281
-0
lines changed

6 files changed

+1281
-0
lines changed

README.md

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# cljsbuild-example-simple
2+
3+
This is an example web application that uses [lein-cljsbuild][1],
4+
[Ring][2], and [Compojure][3]. It demonstrates the use of
5+
lein-cljsbuild to build ClojureScript into JavaScript.
6+
7+
To play around with this example project, you will first need
8+
[Leiningen][4] installed.
9+
10+
## Running the App
11+
12+
Set up and start the server like this:
13+
14+
$ cd example-projects/simple
15+
$ lein cljsbuild once
16+
$ lein ring server-headless 3000
17+
18+
Now, point your web browser at `http://localhost:3000`, and see the web app in action!
19+
20+
[1]: https://github.com/emezeske/lein-cljsbuild
21+
[2]: https://github.com/mmcgrana/ring
22+
[3]: https://github.com/weavejester/compojure
23+
[4]: https://github.com/technomancy/leiningen

project.clj

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
(defproject cljsbuild-example-simple "1.0.3"
2+
:description "A simple example of how to use lein-cljsbuild"
3+
:source-paths ["src-clj"]
4+
:dependencies [[org.clojure/clojure "1.6.0"]
5+
[org.clojure/clojurescript "0.0-2311"
6+
:exclusions [org.apache.ant/ant]]
7+
[compojure "1.1.6"]
8+
[hiccup "1.0.4"]]
9+
:plugins [[lein-cljsbuild "1.0.3"]
10+
[lein-ring "0.8.7"]]
11+
:cljsbuild {
12+
:builds [{:source-paths ["src-cljs"]
13+
:compiler {:output-to "resources/public/js/main.js"
14+
:optimizations :simple
15+
:output-wrapper false
16+
:pretty-print false}}]}
17+
:ring {:handler example.routes/app})

0 commit comments

Comments
 (0)