Skip to content
This repository was archived by the owner on Jan 18, 2024. It is now read-only.

kissaten/clojure-db-pool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clojure Database Connection Pool Example

A barebones Clojure app, which can easily be deployed to Heroku.

This application supports the Getting Started with Clojure article - check it out.

Running Locally

Make sure you have Clojure installed. Also, install the Heroku Toolbelt.

Then install Postgres, make sure it's running, and create a ticks database like so:

$ createdb ticks

Then prepare the app:

$ git clone https://github.com/kissaten/clojure-db-pool.git
$ cd clojure-db-pool
$ lein repl
user=> (require 'ticks.web)
user=>(def server (ticks.web/-main))

Your app should now be running on localhost:5000.

Deploying to Heroku

$ heroku create
$ heroku addons:add heroku-postgresql:hobby-dev
$ git push heroku master
$ heroku open

Documentation

For more information about using Clojure on Heroku, see these Dev Center articles:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published