Installation Instructions
To get started with Sidequest.js, you need to install the main package along with the backend driver of your choice. Below are the installation instructions for different package managers.
WARNING
Make sure you are using Node.js >= 22.6.0. Also, Sidequest does not run with Bun.
Main Package (Required)
To get started with Sidequest, first install the main package:
npm install sidequestyarn add sidequestpnpm add sidequestBackend Drivers (Required)
To keep the application minimal, the main package does not include the backend drivers. Thus you need to install only the driver you will use.
PostgreSQL
We recommend using PostgreSQL for production applications. Install the PostgreSQL backend driver with:
npm install @sidequest/postgres-backendyarn add @sidequest/postgres-backendpnpm add @sidequest/postgres-backendSQLite
SQLite is the default backend and is suitable for development or small applications. However, it is not recommended for production use. To install the SQLite backend driver, run:
npm install @sidequest/sqlite-backendyarn add @sidequest/sqlite-backendpnpm add @sidequest/sqlite-backendMySQL
For MySQL, you can install the backend driver with:
npm install @sidequest/mysql-backendyarn add @sidequest/mysql-backendpnpm add @sidequest/mysql-backendMongoDB
For MongoDB, you can install the backend driver with:
npm install @sidequest/mongo-backendyarn add @sidequest/mongo-backendpnpm add @sidequest/mongo-backendCLI Tool (Optional)
We also provide a CLI Tool to manage backend migrations and configurations. Sidequest will try to manage it in runtime, but if you prefer to do it via CLI for better control, you can install it globally:
npm install -g @sidequest/cliyarn global add @sidequest/clipnpm add -g @sidequest/cli