Skip to content

A skeleton to get started with Clojure on Google App Engine

License

Notifications You must be signed in to change notification settings

xlfe/clojure-app-engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clojure on Google AppEngine

A lein skeleton to get started with Clojure on Google App Engine

Based on a couple of very helpful blogs:

I found a few inconsistencies from the above blogs.

  1. Appstats is not supported on Java 7 (this skeleton uses Java 8). Stackdriver Trace (Appstats replacement) works out of the box instead.
  2. I didn't need to use lein-localrepo to get the GAE Local Deveserver running (as suggested by the lambda-startup post).

Examples

The skeleton includes two routes (defined in core.clj) which write and read to the datastore

Getting up and running with a local development server

This has been tested on App Engine 1.9.58

Start a repl by running lein repl then boot the development appserver (see appengine.clj)

(require '[cae.appengine :as ae])
(ae/start-it)

Deploying to Appengine

Make sure you have put your Google App Engine project name into appengine-web.xml, then:

bash deploy_to_appengine.sh

About

A skeleton to get started with Clojure on Google App Engine

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published