Clojure + MongoDB on Heroku

4,258 views
4,104 views

Published on

some updates about Clojure and introduction to create web application with MongoDB on Heroku.

Published in: Technology
0 Comments
7 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
4,258
On SlideShare
0
From Embeds
0
Number of Embeds
65
Actions
Shares
0
Downloads
25
Comments
0
Likes
7
Embeds 0
No embeds

No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • Clojure + MongoDB on Heroku

    1. 1. user=> (use hiccup.core)niluser=> (html [:span {:class "foo"} "bar"])"<span class="foo">bar</span>"user=>
    2. 2. $ sudo gem install heroku$ gem list heroku*** LOCAL GEMS ***heroku (2.4.0)$ sudo port install git-core$ port installed git-coreThe following ports are currently installed: git-core @1.7.0_0+doc+gitweb+svn (active)
    3. 3. $ sudo port install mongodb$ mkdir -p ~/local/var/db/mongodb_data$ mkdir -p ~/local/var/log/mongodbdbpath = /Users/kaku/local/var/db/mongodb_datafork = truelogpath = /Users/kaku/local/var/log/mongodb/mongodb.loglogappend = true$ mongod -f mongod.conf
    4. 4. $ lein new mogomogo$ cd mogomogoweb: lein run -m mogomogo.core$ git init$ git add .$ git commit -m "Initial commit"$ heroku create --stack cedar$ git push heroku master
    5. 5. $ heroku addons:add mongohq:free$ git commit -a -m "Updates"$ git push heroku master

    ×