Skip to content

Dexterminator/clj-templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clj-templates

A website for finding Leiningen and Boot templates.

Live at: https://clj-templates.com/

Build Status

Development

In order to launch the app in dev mode, setting up a server on localhost:3456, run:

lein repl
=> (go)

You should now see:

=> :initiated

This means that the app is up and running, and that figwheel is listening to changes in your ClojureScript files.

To start a ClojureScript REPL, run:

=> (cljs-repl)

To go back to the regular Clojure REPL, type:

=> :cljs/quit

To restart the system and reload changed namespaces (in the regular Clojure REPL), run:

=> (reset)

Check out the Integrant README as well as Integrant-REPL for more information on how to interact with the system in development mode.

Build CSS

In order to start the stylus autobuilder, run:

make stylusbuild

Run tests:

Clojure

Autorun (tests run as changes to files are detected):

make clj-test

Once:

make clj-test-once

ClojureScript

Autorun (tests run as changes to files are detected):

make cljs-test

Once:

make cljs-test-once

Build CSS and run tests at the same time

Run:

make auto-dev

To build css, and run both Clojure and ClojureScript tests at the same time.

Production build

Run:

make

See the Procfile for the production run command.

Local env

It is convenient to keep a local profiles.clj in the project with local env information, such as ports and urls. For example:

{:profiles/dev  {:env {:port "5001"}}
 :profiles/test {:env {:port "5002"}}}

About

A website for finding Leiningen and Boot templates.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published