This is a simple starter for working with Kirby 3 and Vue together. The Vue app is served via Kirby's
home.php
template and communicates with the CMS via its API.
Kirby is a file-based CMS. Easy to setup. Easy to use. Flexible as hell.
A progressive, incrementally-adoptable JavaScript framework for building UI on the web.
- Serve Kirby locally somehow. MAMP is a possibility for this.
- Create an "API" user within the panel and add its credentials to
.env
. The Vue app will use these to communicate with Kirby. Read more about Vue and environment variables here.
Compile assets on the fly as you develop
$ npm run dev
Create an asset build ready for production
/assets
is completely deleted
$ npm run build