English
Quick Start
Getting started with BubblesJS is easy! Let's create your first project.
Environment Requirements
- Node.js:
^20.19.0 || >=22.12.0 - Package manager: npm, yarn, pnpm, or bun
Node.js 24 LTS is recommended. Monorepo templates use pnpm workspaces, and the NestJS template's localization CLI requires Node.js 22.18+. Templates using Vite+ also require the Vite+ CLI.
Create Project
You can use create-bubbles to create a new BubblesJS project:
bash
npm create bubbles@latest my-projectbash
yarn create bubbles my-projectbash
pnpm create bubbles@latest my-projectbash
bun create bubbles@latest my-projectChoose Template
During project creation, you'll be prompted to select a template:
- Vue: vue-vp-eslint, or vp-vue-eslint-vapor to evaluate Vapor mode.
- React: react-rsbuild-biome, vp-react, or vp-react-shadcn.
- Full-stack: vp-monorepo-react-nestjs, with React / Vue frontends, a NestJS backend, shared code, and localization packages.
- Mini-programs / H5: taro-vue-eslint or taro-react-oxc.
- Next.js: nextjs-vinext-eslint, powered by Vinext.
- Electron: create-eletron-vite, which launches the upstream Electron scaffolder.
You can also select a template directly:
bash
pnpm create bubbles@latest my-project --template vue-vp-eslintSee the template overview for stack details and repository preview templates.
Start Development
For the vue-vp-eslint single-app template, enter the project directory, install dependencies, and start development:
bash
cd my-projectbash
# Install dependencies
npm install
# Start development server
npm run devbash
# Install dependencies
yarn install
# Start development server
yarn devbash
# Install dependencies
pnpm install
# Start development server
pnpm devbash
# Install dependencies
bun install
# Start development server
bun devProject Structure
The generated structure depends on the template. Single-app templates usually include src/, public/, package.json, and vite.config.ts or rsbuild.config.ts. The NestJS monorepo includes apps/web, apps/web-vue, apps/server, packages/shared, packages/i18n, and pnpm-workspace.yaml.
Taro templates use dev:weapp for WeChat mini-programs or dev:h5 for H5, with no generic dev script. Full-stack templates require database and Redis setup before you start the frontend you need. Electron uses the scripts generated by its upstream scaffolder. Follow the corresponding template page for setup details.