This template is a minimal starter for the Query API. It should help to get you started faster with headless development.
✅ Optimized images with ImagerX
✅ Multilingual with Craft multisites
✅ Home and News Section with demo content preconfigured
You can find frontend examples in the branches listed below. The code for the frontend is located in the ./frontend folder.
examples/react-vite: React JS vite example using the@query-api/reactSDK.examples/next: Next JS example using the@query-api/nextSDK.examples/nuxt: Nuxt example using the@query-api/nuxtSDK.examples/vue: Vue example using the@query-api/vueSDK.
Note
If you don't check out a branch from above, the frontend folder will be empty.
- DDEV installed locally
- Node > 20 installed locally
- Basic Craft Knowledge
Paste this command in your terminal and press enter. This should set everything up for you.
./scripts/setup.shNote
You will find more instructions in the frontend/README.md.
Use these credentials to access the control panel:
- User: admin
- Password: admin123
If you use this as a starter for your own application, be sure to flip the access token! The access token used in that demo project is publicly available and not save at all.
- Craft Query API: Learn how to use the Craft Query API.
- React SDK: Learn how to use the
@query-api/reactSDK. - Next SDK: Learn how to use the
@query-api/nextSDK. - Nuxt SDK: Learn how to use the
@query-api/nuxtSDK. - Vue SDK: Learn how to use the
@query-api/vueSDK.
If you encounter bugs or have feature requests, please submit an issue. Your feedback helps improve the starter!