Get Started
Quick Start
Learn how to install and configure the @query-api/next package for your Next.js project.
Requirements
- The Craft Query API plugin must be installed and properly configured in Craft CMS.
- Node.js - 20.x or newer (but I recommend the active LTS release)
Installation
The fastest way to get started is with the create-query-api
command-line tool. It scaffolds a complete project for you, including a pre-configured Craft CMS and a Next.js frontend.
Open your terminal and run the following command:
npx create-query-api@latest query-api-next --template next
Note
You can log into the control panel with these credentials:
- Username:
admin
- Password:
admin123
Manual Installation
If you want to integrate the @query-api/next
SDK into an existing Next.js project or want to understand the setup process step by step, you can head over to the Manual Setup Guide