Installation
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:
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
$ npx create-vercube@latest
$ bun create vercube
Where would you like to create your project?
./my-app
What are you building?
Which modules do you want?
Queue driver? only with Queue
Deploy target?
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
$ npm run dev
$ bun run 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.
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
$ npx vercube add queue --queue bullmq
$ bunx 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.