2014-09-25 11:16:35 +00:00
|
|
|
Grub
|
|
|
|
===============
|
2013-07-24 17:39:02 +00:00
|
|
|
|
2013-10-11 19:49:16 +00:00
|
|
|
Grub is a real-time synced grocery list. Mainly it's a way for me to play around with Clojure[Script] and core.async.
|
2013-07-24 17:39:02 +00:00
|
|
|
|
2014-11-18 17:27:25 +00:00
|
|
|
Install dependencies
|
2014-09-25 11:16:35 +00:00
|
|
|
------------
|
|
|
|
- Java 7+
|
|
|
|
<pre>
|
2014-11-18 17:27:25 +00:00
|
|
|
sudo apt-get install openjdk-7-jdk
|
|
|
|
</pre>
|
|
|
|
- MongoDB
|
|
|
|
<pre>
|
|
|
|
$ sudo apt-get install mongodb
|
2014-09-25 11:16:35 +00:00
|
|
|
</pre>
|
|
|
|
- leiningen 2.1.2+
|
|
|
|
<pre>
|
2014-11-18 17:27:25 +00:00
|
|
|
# For example:
|
2014-09-25 11:16:35 +00:00
|
|
|
$ mkdir ~/bin
|
2014-11-18 17:27:25 +00:00
|
|
|
$ echo "export PATH=\$:$HOME/bin" >> $HOME/.bashrc
|
|
|
|
$ cd ~/bin
|
2014-09-25 11:16:35 +00:00
|
|
|
$ wget https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein
|
|
|
|
$ chmod a+x ~/bin/lein
|
|
|
|
</pre>
|
|
|
|
|
2014-11-18 17:27:25 +00:00
|
|
|
Build
|
|
|
|
-------
|
|
|
|
<pre>
|
|
|
|
$ lein cljsbuild once dev
|
|
|
|
</pre>
|
|
|
|
|
|
|
|
Run
|
2014-09-25 11:16:35 +00:00
|
|
|
-------
|
|
|
|
<pre>
|
|
|
|
$ lein run dev
|
|
|
|
</pre>
|
2014-11-18 17:27:25 +00:00
|
|
|
|
|
|
|
By default it runs at http://localhost:3000
|