Skip to content

Instantly share code, notes, and snippets.

@jneira
Created October 2, 2010 10:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jneira/607534 to your computer and use it in GitHub Desktop.
Save jneira/607534 to your computer and use it in GitHub Desktop.
(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