create-mates
v0.4.1
Published
Scaffold a new Mates app — SPA (Vite) or Fullstack (RPC server + SPA)
Maintainers
Readme
create-mates
Scaffold a new Mates application — SPA or Fullstack.
Usage
npm create mates@latestPass the project name directly to skip the prompt:
npm create mates@latest my-appWhat you get
The CLI asks:
| Question | Options | |----------|---------| | Project type | Mates SPA · Mates Fullstack | | Language (SPA only) | TypeScript (recommended) · JavaScript | | mates-ui? (SPA only) | Yes · No | | Git init? | Yes · No |
Mates SPA
A Vite-powered SPA project:
my-app/
├── index.html
├── package.json
├── tsconfig.json
├── vite.config.ts
└── src/
├── main.ts
├── App.ts
└── Counter.tscd my-app
npm install
npm run devMates Fullstack
A fullstack project with its own RPC server:
my-app/
├── index.html
├── package.json
├── tsconfig.json
├── client/
│ ├── app.ts
│ ├── Features/Counter.ts
│ └── Router/RouterPage.ts
└── server/
├── api/users.ts
└── main.tscd my-app
npm install
npm run dev