Quick Start
Prerequisites
| Name | Version |
|---|---|
| pnpm | >=10.19.0 |
| Nodejs | >=24.8.0 |
| Redis | >=7.2.6 |
| Sqlite3 | Built-in |
| MySQL | >=8 |
| Postgresql | >=17 |
Redis: VonaJS provides the following capabilities based on Redis:Queue, Schedule, Startup, Broadcast, Caching, Two-layer cache, and Redlock
Sqlite3: You need to set up the node-gyp environment in advance to ensure thatbetter_sqlite3.nodecan be compiled properly when installing dependencies
Preparation
- Install command-line tools
bash
$ pnpm add -g vona-cli@latest- Install Vscode extension: Vona - Official
This extension provides a large number of menus for quickly creating code skeletons for various resources
Quick Start
- Create Project
bash
$ vona :create:project projectName
$ cd projectName- Modify .env file
env/.env:
bash
# database
DATABASE_DEFAULT_CLIENT = 'sqlite3' # sqlite3/pg/mysql
DATABASE_CLIENT_PG_PASSWORD =
DATABASE_CLIENT_MYSQL_PASSWORD =
# redis
REDIS_DEFAULT_PASSWORD =- Start Dev Server
bash
$ npm run dev- Unit test
bash
$ npm run test- Build
bash
$ npm run buildDocker Compose
bash
$ npm run build:docker
$ sudo docker-compose build
$ sudo docker-compose up