hyperfiddle / fulcro-electric-template

A sample project that could be used as a starting point for a Fulcro 3 + Electric project.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A sample project that could be used as a starting point for a Fulcro 3 + Electric project.

License:MIT License


Languages

Language:Clojure 97.9%Language:JavaScript 1.1%Language:HTML 0.8%Language:Makefile 0.3%