create-creact-app
v0.4.0
Published
Scaffold a new CReact project — npm create creact-app@latest my-app
Maintainers
Readme
create-creact-app
Scaffold a new CReact project in one command.
Usage
npm create creact-app@latest my-appThis generates a ready-to-run CReact project in my-app/. If you omit the directory
name, it defaults to creact-app. The scaffolder refuses to overwrite a directory that
already exists and is not empty.
You are prompted for a memory backend, or pass
--memory=<file|sqlite|memory|custom>:
| Backend | Persistence |
| -------- | ---------------------------------------- |
| file | JSON files under ./.state (default) |
| sqlite | a single creact.db (better-sqlite3) |
| memory | in-process only, nothing survives |
| custom | a Memory skeleton for you to implement |
Then:
cd my-app
npm install
npm run devnpm run dev runs the app in watch mode via creact --watch index.tsx. The starter is a
durable counter that increments once a second and, with a persistent backend, survives
restarts.
What you get
index.tsx— a real CReact entry point: a durable counter usinguseAsyncOutputmemory.ts— the memory backend you chosepackage.json— dev/start/typecheck scripts, CReact wired uptsconfig.json— JSX configured for CReactREADME.md,.gitignore
Learn more at https://github.com/creact-labs/creact.
