https://github.com/davewm/monzo-cljs
https://github.com/davewm/monzo-cljs
cljs monzo
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/davewm/monzo-cljs
- Owner: DaveWM
- License: other
- Created: 2016-12-11T23:43:50.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-01T21:18:27.000Z (about 9 years ago)
- Last Synced: 2025-05-24T07:39:16.276Z (about 1 year ago)
- Topics: cljs, monzo
- Language: Clojure
- Size: 158 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# monzo-cljs
A [reagent](https://github.com/reagent-project/reagent) web app for interacting with your monzo accounts.
While monzo is in beta, you must host monzo-cljs yourself, using your own client id and secret. Add these details to `src/cljs/monzo_cljs/credentials.cljs` like so:
```clojure
(ns monzo-cljs.credentials)
(def credentials {:client-id "id"
:client-secret "secret"})
```
## Development Mode
### Start Cider from Emacs:
Put this in your Emacs config file:
```
(setq cider-cljs-lein-repl "(do (use 'figwheel-sidecar.repl-api) (start-figwheel!) (cljs-repl))")
```
Navigate to a clojurescript file and start a figwheel REPL with `cider-jack-in-clojurescript` or (`C-c M-J`)
### Compile css:
Compile css file once.
```
lein garden once
```
Automatically recompile css file on change.
```
lein garden auto
```
### Run application:
```
lein clean
lein figwheel dev
```
Figwheel will automatically push cljs changes to the browser.
Wait a bit, then browse to [http://localhost:3449](http://localhost:3449).
### Run tests:
```
lein clean
lein doo phantom test once
```
The above command assumes that you have [phantomjs](https://www.npmjs.com/package/phantomjs) installed. However, please note that [doo](https://github.com/bensu/doo) can be configured to run cljs.test in many other JS environments (chrome, ie, safari, opera, slimer, node, rhino, or nashorn).
## Production Build
```
lein clean
lein cljsbuild once min
```