chr15m / create-sitefox-shadow-fullstack

Bootstrap a full stack Sitefox + shadow-cljs app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Set up a full-stack ClojureScript web server in one command using sitefox and shadow-cljs.

npm create sitefox-shadow-fullstack mywebapp
cd mywebapp
npm install
make watch

Then open src/mywebapp/server.cljs to edit the back end code. Open src/mywebapp/ui.cljs to edit the front end code. Code will be automatically reloaded. 👍

Production

To make a production build into the build folder:

make

To run the production build:

cd build && node server.js

See the sitefox documentation for details on what you can do next.

About

Bootstrap a full stack Sitefox + shadow-cljs app


Languages

Language:Clojure 35.7%Language:Makefile 21.3%Language:JavaScript 19.8%Language:CSS 12.3%Language:HTML 10.9%