Permalink
Browse files

Initial import

  • Loading branch information...
0 parents commit 8a65f8b9bcb0016ef136232f4cd93aca09892238 @st3fan committed Mar 16, 2013
Showing with 30,420 additions and 0 deletions.
  1. +12 −0 .gitignore
  2. +13 −0 README.md
  3. +16 −0 project.clj
  4. +6,158 −0 resources/public/assets/bootstrap.css
  5. +1,109 −0 resources/public/assets/css/bootstrap-responsive.css
  6. +6,158 −0 resources/public/assets/css/bootstrap.css
  7. BIN resources/public/assets/ico/apple-touch-icon-114-precomposed.png
  8. BIN resources/public/assets/ico/apple-touch-icon-144-precomposed.png
  9. BIN resources/public/assets/ico/apple-touch-icon-57-precomposed.png
  10. BIN resources/public/assets/ico/apple-touch-icon-72-precomposed.png
  11. BIN resources/public/assets/ico/favicon.png
  12. BIN resources/public/assets/img/glyphicons-halflings-white.png
  13. BIN resources/public/assets/img/glyphicons-halflings.png
  14. +14,604 −0 resources/public/assets/js/angular.js
  15. +99 −0 resources/public/assets/js/bootstrap-alert.js
  16. +105 −0 resources/public/assets/js/bootstrap-button.js
  17. +207 −0 resources/public/assets/js/bootstrap-carousel.js
  18. +167 −0 resources/public/assets/js/bootstrap-collapse.js
  19. +165 −0 resources/public/assets/js/bootstrap-dropdown.js
  20. +247 −0 resources/public/assets/js/bootstrap-modal.js
  21. +114 −0 resources/public/assets/js/bootstrap-popover.js
  22. +162 −0 resources/public/assets/js/bootstrap-scrollspy.js
  23. +144 −0 resources/public/assets/js/bootstrap-tab.js
  24. +361 −0 resources/public/assets/js/bootstrap-tooltip.js
  25. +60 −0 resources/public/assets/js/bootstrap-transition.js
  26. +335 −0 resources/public/assets/js/bootstrap-typeahead.js
  27. +5 −0 resources/public/assets/js/jquery.js
  28. +102 −0 resources/public/index.html
  29. +22 −0 resources/public/index.js
  30. +38 −0 src/clj_angularjs_recipes/core.clj
  31. +17 −0 src/clj_angularjs_recipes/recipepuppy.clj
@@ -0,0 +1,12 @@
+/target
+/lib
+/classes
+/checkouts
+pom.xml
+pom.xml.asc
+*.jar
+*.class
+.lein-deps-sum
+.lein-failures
+.lein-plugins
+.lein-repl-history
@@ -0,0 +1,13 @@
+This is an example Clojure web application project that uses the Angular.js framework and Bootstrap. It's functionality is pretty minimal: it just grabs a list of recipes from [Recipe Puppy](http://www.recipepuppy.com/) and then displays those in a table. You can change the main ingredient to load different recipes.
+
+The client side code for the web app is in `index.html` and `index.js`. The server side bits are in `core.clj` and `recipes.clj`. The first defines the routes and a very simple JSON API to retrieve recipes. The latter interfaces to the [Recipe Puppy API]() to retrieve recipes.
+
+To run the app you need to have Leiningen 2.0 installed. Then simply run:
+
+```
+$ git clone https://github.com/st3fan/clj-angularjs-recipes.git
+$ cd clj-angularjs-recipes
+$ lein ring server-headless
+```
+
+The app should then be running at [http://localhost:3000](http://localhost:3000)
@@ -0,0 +1,16 @@
+(defproject clj-angularjs-recipes "0.1.0-SNAPSHOT"
+ :description "Example Angular.js and Clojure web application"
+ :url "https://github.com/st3fan/clj-angularjs-recipes"
+ :license {:name "Eclipse Public License"
+ :url "http://www.eclipse.org/legal/epl-v10.html"}
+ :dependencies [[org.clojure/clojure "1.5.1"]
+ [ring/ring-core "1.1.8"]
+ [ring/ring-jetty-adapter "1.1.8"]
+ [compojure "1.1.5"]
+ [cheshire "4.0.0"]
+ [clj-http "0.6.5"]]
+ :dev-dependencies [[ring/ring-devel "1.1.0"]]
+ :plugins [[lein-ring "0.8.3"]
+ [lein-swank "1.4.5"]]
+ :main clj-angularjs-recipes.core
+ :ring {:handler clj-angularjs-recipes.core/app})
Oops, something went wrong. Retry.

0 comments on commit 8a65f8b

Please sign in to comment.