Installation

How to install and run Vercube.

Learn more about Vercube's features and benefits before starting the installation process.

Try it online

If you want to explore Vercube without setting up a local project, you can use one of our online sandboxes:

Stackblitz

Try Vercube in a live environment on Stackblitz.

CodeSandbox

Try Vercube in a live environment on CodeSandbox.

Quick start

Before you begin, make sure you have one of the following runtime environments installed:

We recommend using the latest stable versions of these runtimes for the best experience.

Create a new project

The project generator asks what you are building and which modules to include, and wires them in:

$ pnpm create vercube@latest
create-vercube
  1. Where would you like to create your project?

    ./my-app

  2. What are you building?

    • Selected: API only
    • Fullstack: Vercube + Vue
  3. Which modules do you want?

    • Selected: Schema / OpenAPI
    • Auth
    • Queue
    • Scheduler
    • Storage
    • Cache
    • WebSockets
    • Telemetry
    • Selected: Devtools
    • Selected: Testing
  4. Queue driver? only with Queue

    • Selected: BullMQ
    • RabbitMQ
    • Kafka
    • Memory
  5. Deploy target?

    • Selected: Node, Bun or Deno server
    • AWS Lambda
    • Azure Functions
  6. Package manager?

    pnpm

Every question has a flag, so the same project can be created in CI or by an agent:

$ pnpm create vercube my-app \
    --template api \
    --modules schema,queue,testing \
    --queue bullmq \
    --deploy node \
    --yes

Project generator lists every template, module and flag.

Enter the project

$ cd my-app

A module that needs a broker or a database (BullMQ, RabbitMQ, Kafka, the Redis or Postgres scheduler store) adds it to docker-compose.yml, and its connection to .env. When the project has one, start it with Docker:

$ docker compose up -d

Start the development server

$ pnpm dev

curl localhost:3000/api/foo answers {"message":"Hello, world!"}. Each module adds a small working example next to it, such as POST /api/jobs/welcome for the queue. A fullstack project serves the Vue app on http://localhost:5173.

The development server rebuilds and restarts on every change.

Adding a module later

The recipes the generator applies also work on an existing project, through the project's own CLI:

$ pnpm vercube add queue --queue bullmq

Adding a module twice changes nothing, so it is safe to run again. It does not reconfigure one either: adding the queue again with another driver adds that driver's packages and service, but the plugin keeps the driver it was set up with.