• Stars
    star
    137
  • Rank 258,217 (Top 6 %)
  • Language
    Clojure
  • License
    Eclipse Public Li...
  • Created about 10 years ago
  • Updated almost 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A Leinigen template for figwheel

figwheel-template

A Leinigen template to get started with Figwheel.

Usage

Make sure you have the latest version of leiningen installed.

lein new figwheel hello-world

Options

--react     Adds a bare bones React app, including Sablono.
--reagent   Adds a bare bones Reagent app.
--rum       Adds a bare bones Rum app.
+bundle     Generates a project with npm and webpack support.

Include the options using -- to separate them from Leiningens options, like so

lein new figwheel hello-world -- --reagent

Usage

To get an interactive development environment run

npm install

and then

lein figwheel

from the project root directory.

Wait ... until the project finishes compiling and then ... open your browser at localhost:3449/index.html.

Figwheel will now be running and will auto compile and send all changes to the browser without the need to reload.

After the compilation process is complete, and you have loaded the compiled project in your browser you will get a ClojureScript REPL prompt that is connected to the browser.

An easy way to verify this is:

(js/alert "Am I connected?")

and you should see an alert in the browser window.

To clean all compiled files:

lein clean

To create a production build run:

lein do clean, cljsbuild once min

And open your browser in resources/public/index.html. You will not get live reloading, nor a REPL.

Npm dependencies

The generated project is compatible with Webpack and npm and you can add JavaScript dependencies via the normal npm install route.

From the Clojure REPL

Alternatively you can lauch Figwheel from the REPL.

If you run lein repl a Clojure REPL will launch.

From this REPL prompt you can run

user> (fig-start)

and this will launch figwheel but will not launch the ClojureScript REPL.

You can launch the Figwheel ClojureScript REPL like so:

user> (cljs-repl)

Please see dev/user.clj for more information.

Note: you should always run lein figwheel to verify that you have setup everything correctly.

License

Copyright © 2020 Bruce Hauman

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

More Repositories

1

lein-figwheel

Figwheel builds your ClojureScript code and hot loads it into the browser as you are coding!
Clojure
2,891
star
2

devcards

Devcards aims to provide a visual REPL experience for ClojureScript
Clojure
1,521
star
3

rebel-readline

Terminal readline library for Clojure dialects
Clojure
670
star
4

figwheel-main

Figwheel Main provides tooling for developing ClojureScript applications
Clojure
631
star
5

flappy-bird-demo

Live interactive coding Flappy Bird in ClojureScript
JavaScript
145
star
6

spell-spec

clojure.spec.alpha helpers that check for misspelled map keys, with expound integration
Clojure
132
star
7

dotsters

A game implemented in ClojureScript with the core.async library.
CSS
125
star
8

cljs-test-display

Visual display for ClojureScript tests.
Clojure
107
star
9

figwheel-main-template

A template to generate a minimal figwheel-main based ClojureScript project
Clojure
83
star
10

react-native-figwheel-bridge

Enables React Native projects written in ClojureScript to use Figwheel's live reloading and REPL.
JavaScript
78
star
11

certifiable

A helper tool that simplifies the creation of development time SSL certificates for use with Java Webservers like Jetty.
Clojure
44
star
12

figwheel-repl

Figwheel REPL provides a stable multiplexing REPL for ClojureScript
Clojure
44
star
13

crashverse

Clojure
41
star
14

advent-of-clojure-2016

My Advent of Code 2016 solutions in Clojure
Clojure
31
star
15

advent-of-clojure

My solutions to the Advent of Code
Clojure
28
star
16

flappy-bird-demo-new

This is the original Flappy Bird Demo updated to use the latest incarnation of Figwheel.
Clojure
24
star
17

strictly-specking

Clojure
22
star
18

figwheel-core

Figwheel core provides code reloading facilities for ClojureScript.
Clojure
22
star
19

devcards-template

A leinigen template for ClojureScript devcards
Clojure
19
star
20

jspec-rails

Javascript BDD integration for Ruby on Rails
JavaScript
16
star
21

cljs-react-reload

Hot reload React classes in cljs
Clojure
15
star
22

javascript_yome_widget

A JavaScript Yome widget written for a blog post.
JavaScript
14
star
23

async-explore

Exploring how core async interfaces with the daily grind of web dev.
Clojure
14
star
24

sonic-cljs

Using ClojureScript, Tone.js and React to make a declarative live coding library
JavaScript
14
star
25

bhauman.github.com

My blog
JavaScript
13
star
26

figwheel.tools

nREPL support for ClojureScript
Clojure
10
star
27

cohortly

Cohort analysis engine for Rails utilizing mongodb and map reduce
JavaScript
9
star
28

talk-slides

Clojure
5
star
29

font_squirreler

A thor script to squirrel away some fontsquirrel.com webfonts locally or on s3.
4
star
30

unabjah

Simply Unobtrusive Javascript
JavaScript
3
star
31

moriscore

Giving mori.js underscore like usage patterns.
CoffeeScript
3
star
32

nextpress

A jekyl like static site generator that runs in the browser and uses AWS S3
Clojure
3
star
33

metacircular

interuptable metacircular interpreter with first class macros
Clojure
2
star
34

strange-loop-2015

Clojure
2
star
35

frontier

functional front end web dev - WIP
JavaScript
1
star
36

advent-of-code-2022

Advent of code solutions in Clojure for 2022
Clojure
1
star
37

figwheel-main-testing

integration testing for figwheel-main
Clojure
1
star
38

rgba_rack

A set of image servers to make up for lack of rgba() support and linear_gradient support.
Ruby
1
star
39

leaves-client

This is an experimental client for an immutable JSON document service
CoffeeScript
1
star
40

ml-class

Machine learning class from stanford
MATLAB
1
star
41

simple-lein-profile-merge

A simple Clojure library to help fetch configuration information from your project.clj without needing to load Leiningen.
Clojure
1
star