Skip to content

Om next template with figwheel and SCSS hot-reload.

Notifications You must be signed in to change notification settings

hlolli/om-next-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Om next template

Ready to be exploited for:

  • SCSS hot reload.
  • Transit based remote sync.
  • Extensible Compojure routing.

Quick start

Assuming Cider+emacs development environment:

    1. After cloneing/downloading. Open om-next-template/src/cljs/ui/core.cljs
    1. M-x cider-jack-in-clojurescript
    1. In the clj-repl type (load-file "script/figwheel.clj") to start figwheel
    1. Open http://localhost:8440
    1. Add css/scss styling in om-next-template/scss/style.scss (must have scss installed, do so with sudo npm install -g node-sass, read more about the SCSS figwheel script here https://github.com/bhauman/lein-figwheel/wiki/SASS-watcher)
    1. Realize that the backend parser and handlers are located in om-next-template/src/clj/backend/server.clj
    1. For standalone jar, delete om-next-template/resources/public/main.js and this directory om-next-template/resources/public/out, then do these two commands lein cljsbuild once (for advanced compilation) and then lein ring uberjar.

About

Om next template with figwheel and SCSS hot-reload.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published