Installation
Note
Only TypeScript compilation is supported.
Support for additional languages will be added in future releases.
Installing the Compiler
Linux and macOS
curl -fsSL https://cloesce.pages.dev/install.sh | sh
Windows (PowerShell)
irm https://cloesce.pages.dev/install.ps1 | iex
Then verify the installation:
cloesce version
Starting a New Project
The fastest way to get a Cloesce project up and running is to use the create-cloesce template.
Prerequisites
- Sign up for a Cloudflare account (not necessary for local development)
- Install Node.js (version
16.17.0or later)
create-cloesce
Run the following command in your terminal:
npx create-cloesce my-cloesce-app
After running the command, navigate into your new project directory:
cd my-cloesce-app
A simple project structure is created for you.
├── src/
│ ├── api/ # API route handlers
│ ├── web/ # Frontend web assets
│ └── schema/
│ └── schema.clo # Cloesce schema definition
├── test/ # Unit tests for example Models
├── migrations/ # Database migration files
├── cloesce.jsonc # Cloesce configuration
└── package.json