Fulcro + Electric Template
Example Electric integration in a Fulcro app. Forked from the official Fulcro starter template. Refer to it for Fulcro specific instructions.
Quick Start
git clone --depth 1 -o fulcro-electric-template https://github.com/hyperfiddle/fulcro-electric-template.git fulcro-electric-app
cd fulcro-electric-app
# The shadow-cljs compiler is a dependency.
yarn install
# 1. Start shadow-cljs frontend compilation server:
npx shadow-cljs watch main
# 2. Start the backend server:
# (Note: for proper development you will want to start it in a nREPL-based
# REPL, see the detailed instructions for "The API Server" below.)
clj -A:dev
user=> (require 'development)
user=> (in-ns 'development)
development=> (start)
# after modifications of the backend code run: `(restart)`
# 4. Visit the application at http://localhost:3000