Awes.io Models and Collections abstract layer
Based on VueMC
Basic usage
- Ensure you are using @nuxtjs/axios in your project
- Install the pages
yarn add @awes-io/vue-mc
- Connect to the Nuxt project
build: {
transpile: ['@awes-io/vue-mc']
}
- Now you are ready to build models and collections
- Import your
BaseModel and BaseCollection from this package
import { BaseModel, BaseCollection } from '@awes-io/vue-mc'
class Todo extends BaseModel {
defaults() {
return {
id: null,
done: false
}
}
}
class Todos extends BaseCollection {
model() {
return Todo
}
}
export default Todos
Build for production
$ yarn build
Ensure to write proper commit message according to Git Commit convention