Git Product home page Git Product logo

haunting-refrain-posh's Introduction

haunting-refrain

Experiment with datascript + posh + re-frame

CircleCI

Development Mode

Basically, lein repl, (fig), (cljs). I generally connect to the nrepl from IntelliJ, so the sequence looks roughly like this:

lein repl
Loading sidecar...
nREPL server started on port 4444 on host 0.0.0.0 - nrepl://0.0.0.0:4444
[...]
user=> 

Connect an IntelliJ remote nREPL to localhost:4444, or just continue with the terminal.

user=> (fig)
Figwheel: Starting server at http://0.0.0.0:3449
Figwheel: Watching build - dev
Compiling "resources/public/js/compiled/app.js" from ["src/cljs"]...
()
Successfully compiled "resources/public/js/compiled/app.js" in 19.139 seconds.
Figwheel: Starting CSS Watcher for paths  ["resources/public/css"]
nil
user=> (cljs)
Launching ClojureScript REPL for build: dev
[...]

Some time after the above, open your browser to http://localhost:3449/. After it connects you'll get your user=> prompt back, and you should be able to (.alert js/window "Whoopee!") and see the result in your browser.

Run tests:

lein with-profile test doo phantom test

This runs the tests and then watches for chages to files after which it re-runs them. Append once to the end to run the tests a single time.

Production Build

To compile an advanced clojurescript build:

lein clean
lein with-profile prod cljsbuild once min

Deployment

The site is auto-deployed to netlify on commits to master. Run lein release to merge develop to master, then push to trigger a build.

haunting-refrain-posh's People

Contributors

timgilbert avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.