HealthSamurai/task-oriented-ui-poc

Name: task-oriented-ui-poc

Owner: Health Samurai Team

Description: null

Created: 2017-08-23 12:35:29.0

Updated: 2017-08-23 12:36:04.0

Pushed: 2017-10-02 10:11:11.0

Homepage: null

Size: 424

Language: Clojure

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

POC

Live demo

How to setup dev environment

Install Leiningen

n repl
start-fw)

Open localhost:3000

Routing
Styles

We use bootstrap-4 with Garden for local styles (just in components).

n component []
iv.component-class
tyles/style [:.compoent-class {:border-bottom "1px solid #ddd"
                               :padding-bottom 0}
            [:nested-tags {:border-bottom "3px solid transparent"}
                [:&.active {:border-color "#555"}]]])
    ....
])
Forms

TODO: form builder and validation

Now to add new page

If you page is huge, you could split it into re-frame modules like /page/events.cljs, page/view.cljs etc (see https://github.com/Day8/re-frame/wiki/A-Larger-App)

Project Layout
Production Build
 with-profile prod cljsbuild once ui

esources/public/index.html build/

R build
Deploy

Deploy is automatically build and deplpoy app to S3 bucket from Circle CI Deploy config file located in .circleci/config.yml. Also, you can install CircleCi CLI for validating config.yml file and test deploy locally

leci config validate
leci build

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.