Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aelesbao/om-intermediate-tut
https://github.com/aelesbao/om-intermediate-tut
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/aelesbao/om-intermediate-tut
- Owner: aelesbao
- Created: 2015-03-24T19:10:44.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-03-25T17:47:08.000Z (over 9 years ago)
- Last Synced: 2023-03-22T10:46:56.626Z (over 1 year ago)
- Language: Clojure
- Size: 125 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Om Intermediate Tutorial
[Check complete tutorial here](https://github.com/omcljs/om/wiki/Intermediate-Tutorial)
## Setup
First download a copy of [Datomic Free](http://my.datomic.com/downloads/free). Unzip it and run the following inside the directory:
bin/transactor config/samples/free-transactor-template.properties
Launch a Lein repl with lein repl. Once the repl is up run the following:
user=> (use 'om-async.util)
nil
user=> (init-db)
:doneThe tutorial database now exists and is populated. Quit the REPL.
If you got an error, try an earlier version of Datomic Free.
## How to run
We will use [Figwheel](https://github.com/bhauman/lein-figwheel) to reload our front end ClojureScript while we code. Figwheel uses a server to auto compile our code and push it to the browser. But we also need a server running our back end code. To start both the server and the compilation process, run:
lein figwheel
When the server is up, point your browser at [localhost:3449](http://localhost:3449). When it is done compiling, check if the Browser REPL is connected by typing:
ClojureScript:cljs.user> (js/alert "Am I connected?")