aabf33276387

Clean up a bit.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Tue, 04 Oct 2011 19:06:19 -0400
parents 541449fa9cff
children 93801c389112
branches/tags (none)
files .gitignore README.markdown src/newseasons/server.clj src/newseasons/settings-template.clj src/newseasons/settings-vagrant.clj

Changes

diff -r 541449fa9cff -r aabf33276387 .gitignore
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.gitignore	Tue Oct 04 19:06:19 2011 -0400
@@ -0,0 +1,9 @@
+.vagrant
+pom.xml
+*jar
+lib/
+classes/
+.lein-failures
+.lein-deps-sum
+scratch.clj
+src/newseasons/settings.clj
diff -r 541449fa9cff -r aabf33276387 README.markdown
--- a/README.markdown	Tue Oct 04 19:04:52 2011 -0400
+++ b/README.markdown	Tue Oct 04 19:06:19 2011 -0400
@@ -1,15 +1,43 @@
 newseasons
 ==========
 
-A simple Clojure webapp for keeping track of when new seasons of TV shows hit
-iTunes 
+A simple Clojure webapp that notifies users when new seasons of their favorite
+TV shows hit iTunes.
+
+Requirements
+------------
+
+[Vagrant](http://vagrantup.com/).
 
 Usage
 -----
 
+Clone down the repo:
+
+    hg clone http://bitbucket.org/sjl/newseasons
+    # or
+    git clone http://github.com/sjl/newseasons
+
+    cd newseasons
+
+Spin up a VM, SSH in, and set up the environment:
+
+    vagrant up
+
+    ssh vagrant
+    cd /vagrant
+
+    cp src/newseasons/settings-vagrant.clj src/newseasons/settings.clj
     lein deps
+
+Run the web server (while SSH'ed in):
+
     lein run
 
+To run the check-for-new-seasons/notify-users loop:
+
+    lein run :refresh
+
 License
 -------
 
diff -r 541449fa9cff -r aabf33276387 src/newseasons/server.clj
--- a/src/newseasons/server.clj	Tue Oct 04 19:04:52 2011 -0400
+++ b/src/newseasons/server.clj	Tue Oct 04 19:06:19 2011 -0400
@@ -1,4 +1,5 @@
 (ns newseasons.server
+  (:use newseasons.settings)
   (:use [newseasons.middleware.session.redis :only (redis-store)])
   (:require [noir.server :as server]))
 
@@ -9,5 +10,5 @@
         port (Integer. (get (System/getenv) "PORT" "8000"))]
     (server/start port {:mode mode
                         :ns 'newseasons
-                        :session-store (redis-store "localhost" "devpass")})))
+                        :session-store (redis-store "localhost" redis-pass)})))
 
diff -r 541449fa9cff -r aabf33276387 src/newseasons/settings-template.clj
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/newseasons/settings-template.clj	Tue Oct 04 19:06:19 2011 -0400
@@ -0,0 +1,4 @@
+(ns newseasons.settings)
+
+(def redis-pass "")
+(def postmark-api-key "POSTMARK_API_TEST")
diff -r 541449fa9cff -r aabf33276387 src/newseasons/settings-vagrant.clj
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/newseasons/settings-vagrant.clj	Tue Oct 04 19:06:19 2011 -0400
@@ -0,0 +1,4 @@
+(ns newseasons.settings)
+
+(def redis-pass "devpass")
+(def postmark-api-key "POSTMARK_API_TEST")