Git Product home page Git Product logo

danlentz

A Heroku web app using Compojure.

This generated project has a few basics set up beyond the bare Compojure defaults:

Usage

To start a local web server for development you can either eval the commented out forms at the bottom of web.clj from your editor or launch from the command line:

$ lein run -m danlentz.web

Initialize a git repository for your project.

$ git init
$ git add .
$ git commit -m "Initial commit."

You'll need the heroku toolbelt installed to manage the heroku side of your app. Once it's installed, get the app created:

$ heroku apps:create danlentz
Creating danlentz... done, stack is cedar
http://danlentz.herokuapp.com/ | [email protected]:danlentz.git
Git remote heroku added

You can deploy the skeleton project immediately:

$ git push heroku master
Writing objects: 100% (13/13), 2.87 KiB, done.
Total 13 (delta 0), reused 0 (delta 0)

-----> Heroku receiving push
-----> Clojure app detected
-----> Installing Leiningen
       Downloading: leiningen-2.0.0-preview7-standalone.jar
[...]
-----> Launching... done, v3
       http://danlentz.herokuapp.com deployed to Heroku

To [email protected]:danlentz.git
 * [new branch]      master -> master

It's live! Hit it with curl:

$ curl http://danlentz.herokuap.com
["Hello" :from Heroku]

The cookie-backed session store needs a session secret configured for encryption:

$ heroku config:add SESSION_SECRET=$RANDOM_16_CHARS

Remote REPL

The devcenter article has a detailed explanation, but using the repl task from Leiningen 2.x lets you connect a REPL to a remote process over HTTP. The first step is setting up credentials:

$ heroku config:add REPL_USER=[...] REPL_PASSWORD=[...]

Then you can launch the REPL:

$ lein repl :connect http://$REPL_USER:[email protected]/repl

Everything you enter will be evaluated remotely in the running dyno, which can be very useful for debugging or inspecting live data.

License

Copyright © 2013 FIXME

Distributed under the Eclipse Public License, the same as Clojure.

Dan Lentz's Projects

cassandra icon cassandra

cassandra version 0.6.2 suitable for use with de.setf.resource

cider-inspect icon cider-inspect

An extension for the clojure-emacs IDE Cider, direct descendent of nrepl-inspect

cl-ctrie icon cl-ctrie

lock-free, concurrent, key/value index with efficient memory-mapped persistence and fast transient storage models

cl-wal icon cl-wal

write ahead log for Common Lisp.

cldoc icon cldoc

Common Lisp Universal Documentation Generator (forked from CVS)

clj-fgl icon clj-fgl

A Functional Graph Library for Clojure

clj-rpe icon clj-rpe

Regular path expressions for Java object networks and Clojure data structures.

clj-uuid icon clj-uuid

RFC4122 Unique Identifiers (v1,v3,v4,v5, squuid) for Clojure

clj-wbtree icon clj-wbtree

A 'Purely Functional' Weight Balanced Binary Tree for Clojure

clojure-cookbook icon clojure-cookbook

This is the home of O'Reilly's Clojure Cookbook - http://clojure-cookbook.com

com.b9.puri.ppcre icon com.b9.puri.ppcre

Extends com.b9.puri to support userinfo and specialized uri classes; re-implements the parser with cl-ppcre

critbit89 icon critbit89

A cribit tree implementation for strings in C89

ctries.clj icon ctries.clj

Ctries implemented in Clojure, see Prokopec, Bronson, Bagwell, Odersky

dabase icon dabase

DoubleArrayの基本となる実装

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.