This repo contains an example front-end application. Mainly for me to learn Re-frame.
This front-end is matched with the hax backend server.
The pair hix and hax form a simple application that allows a new
user to register for a service, and then allows users to login and
logout.
Note that these notes are for MacOS and emacs (with cider installed).
- Install node and sass
brew install node
brew install sass- Install shadow-cljs globally.
npm install --global shadow-cljs- Make sure you are running
haxbefore startinghixotherwisehixwill have nowhere to connect to.
- Clone this repo.
git clone https://github.com/bombaywalla/hix.git- Set up node packages.
npm install --save- Run the
sassprocessor to generate the CSS forhix.
sass -I node_modules/bulma -I node_modules/bulma-pricingtable/dist/css \
resources/sass/hix.sass resources/public/css/hix.css-
Make sure you are running
hax. -
Start
emacsand visit thedeps.ednfile. -
Fire up a cider cljs repl
C-c C-x j s -
Answer
ywhen you are asked if you want to open a web browser.
$ shadow-cljs -A:test compile test
$ karma start --single-runExpect some re-frame warnings about overwriting handlers.
- Run a report for the release build.
npx shadow-cljs -A:prod run shadow.cljs.build-report app /tmp/report.html- Create a production release build.
$ shadow-cljs -A:prod release appI took inspiration and code from
Please look at them as additional examples.
Copyright © 2020 Dorab Patel
Distributed under the MIT License.