Skip to content

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-project
bash
yarn create bubbles my-project
bash
pnpm create bubbles@latest my-project
bash
bun create bubbles@latest my-project

Choose Template ​

During project creation, you'll be prompted to select a template:

You can also select a template directly:

bash
pnpm create bubbles@latest my-project --template vue-vp-eslint

See 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-project
bash
# Install dependencies
npm install

# Start development server
npm run dev
bash
# Install dependencies
yarn install

# Start development server
yarn dev
bash
# Install dependencies
pnpm install

# Start development server
pnpm dev
bash
# Install dependencies
bun install

# Start development server
bun dev

Project 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.

Next Steps ​

  • Packages: installation, examples, and API references on each package page.
  • Templates: stack details and template-specific development and build commands.

Released under the MIT License