Created
October 2, 2010 10:39
-
-
Save jneira/607534 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns mygae.core | |
(:gen-class :extends javax.servlet.http.HttpServlet) | |
(:use compojure.core | |
ring.util.servlet | |
ring.adapter.jetty) | |
(:require [compojure.route :as route])) | |
(defroutes example | |
(GET "/" [] "<h1>Hello World Wide Web</h1>") | |
(route/not-found "Page not found")) | |
(defservice example) | |
(defn boot [] (future (run-jetty #'example {:port 8080}))) | |
;; project.clj | |
(defproject mygae "0.1.0-SNAPSHOT" | |
:description "Example app for deployoing Compojure on Google App Engine" | |
:namespaces [mygae.core] | |
:dependencies [[compojure "0.5.1"] | |
[ring/ring-servlet "0.3.1"]] | |
:dev-dependencies [[swank-clojure "1.2.0"] | |
[ring/ring-devel "0.3.1"] | |
[ring/ring-jetty-adapter "0.3.1"]] | |
:compile-path "war/WEB-INF/classes" | |
:library-path "war/WEB-INF/lib") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment