Skip to content

A distributed diffusion computation simulation on a reactive canvas

License

Notifications You must be signed in to change notification settings

mudphone/ReagentDiffusion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Diffusion

What is this?

It looks a little like this:
Diffusion animation

What was done...

  • mix phoenix.new diffusion
  • cd diffusion
  • lein new reagent-frontend diffusion
  • mv diffusion cljs
  • add Reagent app id to Phoenix template
  • add Reagent dep for Phoenix CLJSJS
  • remove all js from dev.exs live_reload spec ** keep only priv/static/js/app.js, to work with figwheel

Development Mode

From: https://github.com/gadfly361/reagent-figwheel

Start Cider from Emacs:

Put this in your Emacs config file:

(setq cider-cljs-lein-repl "(do (use 'figwheel-sidecar.repl-api) (start-figwheel!) (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

Figwheel will automatically push cljs changes to the browser.

Wait a bit, then browse to http://localhost:3449.

Production Build

Don't know if this works yet...

lein clean
lein cljsbuild once min

Startup

To start your Phoenix app:

  • Install dependencies with mix deps.get
  • Create and migrate your database with mix ecto.create && mix ecto.migrate
  • Install Node.js dependencies with npm install
  • Start Phoenix endpoint with mix phoenix.server

Now you can visit localhost:4000 from your browser.

Ready to run in production? Please check our deployment guides.

About

A distributed diffusion computation simulation on a reactive canvas

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published