28 lines
939 B
Markdown
Raw Normal View History

2016-10-19 21:20:48 +11:00
# A Simple App
2015-02-25 14:31:11 +13:00
2016-10-19 21:20:48 +11:00
This tiny application is meant to provide a quick start of the basics of re-frame.
2015-02-25 14:31:11 +13:00
2016-12-29 18:01:12 +11:00
A detailed source code walk-through is provided in the docs:
https://github.com/Day8/re-frame/blob/master/docs/CodeWalkthrough.md
All the code is in one namespace: `/src/simpleexample/core.cljs`
2015-02-25 14:31:11 +13:00
2016-10-19 21:20:48 +11:00
### Run It And Change It
2015-02-25 14:31:11 +13:00
2016-10-19 21:20:48 +11:00
Steps:
1. Check out the re-frame repo
2. Get a command line
3. `cd` to the root of this sub project (where this README exists)
4. run "`lein do clean, figwheel`" to compile the app and start up figwheel hot-reloading,
5. open `http://localhost:3449/example.html` to see the app
2016-10-19 21:20:48 +11:00
While step 4 is running, any changes you make to the ClojureScript
2016-10-19 21:20:48 +11:00
source files (in `src`) will be re-compiled and reflected in the running
page immediately.
### Production Version
Run "`lein do clean, with-profile prod compile`" to compile an optimized
version, and then open `resources/public/example.html` in a browser.