https://github.com/zk/charly
Next.js (and more) for Clojure/Script
https://github.com/zk/charly
Last synced: 9 months ago
JSON representation
Next.js (and more) for Clojure/Script
- Host: GitHub
- URL: https://github.com/zk/charly
- Owner: zk
- Created: 2021-05-22T23:43:27.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-15T02:30:13.000Z (over 4 years ago)
- Last Synced: 2025-04-01T17:28:17.098Z (9 months ago)
- Language: Clojure
- Size: 72.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Charly

Charly is a modern web framework for Clojure/Script
## Hot reload all the things
### Checklist
* ✅ CLJS source
* ✅ Static files (see `./static`)
* ✅ Dynamic CSS
* ✅ Routes
* ✅ Templates
* ⬜️ charly.edn
## Options
* `:id` -- Used in various parts as a unique identifier for this charly project
* `:project-root` -- Path to directory holding the project source relative to the working directory
* `:client-routes` -- Routes file for web frontend
* `:client-cicd`
* `:git-user-email`, `:git-user-name` -- used to generate the deploy script
* `:disable-refresh-namespaces?` -- Disable clj / cljc namespace refreshing. Handy when refreshing a ns with errors
## API Node Process
To restart the api node process see `charly.main/restart-api!`. Also aliased into the `user` ns.
## Working on Charly
* [Figma](https://www.figma.com/file/9sfOfkNHPSiMKCyLS6w2KJ/Charly?node-id=0%3A1&viewport=655%2C505%2C1)
## Disbling Namespace Refresh
You might want to disable namespace refresh of clj and cljc files if you're working directly against the repl via your IDE's repl load commands.
+ Globally: Add `:disable-refresh-namespaces? true` to `charly.edn`. This prop is hot reloaded.
+ Namespace local: use (charly.tools-repl/disable-reload!) in the namespace (or pass the namespace as the first argument). charly.tools-repl/enable-reload! to enable reloading.