vue create my-app
cd my-app
vue add vuetify
vue add kingscode-scaffold
npm run serve
Mind that some choices you make in the vue create my-app
and
later in the vue add vuetify
will be overwritten by vuetify, or the kings code scaffold.
Notice: it does not matter which choice you make with options that are not documented.
We'd recommend you to choose
- babel
- eslint (only the essential)
- pwa
- router
- vuex
- css pre-processors
And then:
- history mode
- dart sass (very important, vuetify won't work without it)
The rest doesn't matter.
Choose recommended
This is our own scaffold, which you can use with our laravel API you can answer the questions as you like in this plugins. The most important choices are:
- Do you want to use a crud system?
- This installs our vuetify resource and creates an implementation for this, so the vuetify resource works with the connected laravel API
- a example user resource
- Do you want to use authorisation?
- This creates a login, password forgotten and invitation page
- You'll get follow up questions about the Oauth settings from the API
To test/develop the kingscode scaffold you can locally invoke this plugin.
create a test project (vue create scaffold-tester
) just like above.
browse to the scaffold-tester folder, which was just created.
install vuetify
vue add vuetify
install the cli-plugin locally
npm i path\to\local\vue-cli-plugin-kingscode-scaffold
invoke the plugin
vue invoke kingscode-scaffold