grub-fork/README.md

39 lines
748 B
Markdown
Raw Normal View History

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
------------
2015-11-18 01:38:46 +00:00
- Java
- Datomic
- Set environment variables:
`DATOMIC_HOME=<Datomic directory>`
`DATOMIC_TRANSACTOR_PROPERTIES_DIR=<directory with transactor.properties file>`
- Add Datomic credentials to `~/.lein/credentials.clj.gpg` per Datomic instructions.
2015-11-18 01:38:46 +00:00
- Leiningen
2014-11-18 17:27:25 +00:00
2015-11-18 01:38:46 +00:00
Build for development
2014-09-25 11:16:35 +00:00
-------
2015-11-18 01:38:46 +00:00
```
$ ./scripts/start_datomic
2015-11-18 01:38:46 +00:00
$ lein cljsbuild auto dev
2014-09-25 11:16:35 +00:00
$ lein run dev
2015-11-18 01:38:46 +00:00
```
Navigate to http://localhost:3000.
Build for production
-------
```
$ lein cljsbuild once prod
$ lein run prod
```
2014-11-18 17:27:25 +00:00
2015-11-18 01:38:46 +00:00
Or you can run the `scripts/build.sh` script to get a deployment JAR.