This a template that lets you deploy a ClojureScript project on Netlify. It is currently using the following:
The template automatically sets up the following features that Netlify Offers:
- A basic Front End deployed as a Netlify Site
- A Netlify Function (see docs to learn more)
You can remove some of these features based on your use case.
A demo of this repo is also available at https://cljs-demo.netlify.app
Checkout https://github.com/bryanmikaelian/netlify-cljs-figwheel
When developing locally, these commands can help you out:
Use the netlify-cli to spin up a dev environment. You can visit your site at http://localhost:8888. Useful when you want to debug Netlify Functions.
yarn server
Watch and recompile your site as you make changes. You can visit your site at http://localhost:8700. If you use this in tandem with yarn server
, you can use port 8888 for everything.
yarn watch
Removes artifacts that are generated by shadow-cljs and tailwind
yarn clean
Builds the site for release. Netlify will use the same command when deploying
yarn release
Runs a shadow-cljs server that hosts your app. Does not watch for changes. You can visit your site at http://localhost:8700.
yarn release
Spins up a shadow-cljs browser REPL
yarn repl