Getting Started with Zenthyr
Getting Started
Prerequisites
Before you begin, ensure you have the following installed:
- Java (JDK installed and on PATH)
- Node.js + npm
- Leiningen
Create a New App
If you are developing Zenthyr locally, install the template first:
cd templatelein installGenerate a project (this also runs git init inside the generated folder):
lein new zenthyr my-appSelect a frontend framework:
lein new zenthyr my-react-app +reactlein new zenthyr my-vue-app +vuelein new zenthyr my-svelte-app +sveltelein new zenthyr my-angular-app +angularRun It
cd my-applein runWhat happens when you run:
- Ensures frontend dependencies (
npm install) exist (createsnode_modules/if needed) - Starts Vite (
npm run dev) on an available port - Opens a JCEF window pointing at the Vite dev server
Project Structure
my-app/├── project.clj # Depends on `zenthyr`├── src/<app-namespace>/main.clj # Your entrypoint (with `-main`)└── src/app/ # Vite project root (UI sources under `src/app/src/`)Next Steps
- Read Architecture
- Build the Frontend
- Implement the Backend handler