Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kirang89/cljnake
The nostalgic snake game brought to you by clojurescript and re-frame.
https://github.com/kirang89/cljnake
clojurescript re-frame
Last synced: 14 days ago
JSON representation
The nostalgic snake game brought to you by clojurescript and re-frame.
- Host: GitHub
- URL: https://github.com/kirang89/cljnake
- Owner: kirang89
- Created: 2018-01-24T14:09:50.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-30T09:23:44.000Z (almost 7 years ago)
- Last Synced: 2024-12-22T20:02:59.530Z (19 days ago)
- Topics: clojurescript, re-frame
- Language: Clojure
- Size: 22.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cljnake
[![Build Status](https://travis-ci.org/kirang89/cljnake.svg?branch=master)](https://travis-ci.org/kirang89/cljnake)
The nostalgic snake game brought to you by clojurescript and re-frame.
## Development Mode
### Start Cider from Emacs:
Put this in your Emacs config file:
```
(setq cider-cljs-lein-repl
"(do (require 'figwheel-sidecar.repl-api)
(figwheel-sidecar.repl-api/start-figwheel!)
(figwheel-sidecar.repl-api/cljs-repl))")
```Navigate to a clojurescript file and start a figwheel REPL with `cider-jack-in-clojurescript` or (`C-c M-J`)
### 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
To compile clojurescript to javascript:
```
lein clean
lein cljsbuild once min
```