@awes-io/vue-mc

Models and collections abstract layer.

Usage no npm install needed!

<script type="module">
  import awesIoVueMc from 'https://cdn.skypack.dev/@awes-io/vue-mc';
</script>

README

Awes.io Models and Collections Abstract Layer

Based on VueMC

Basic usage

  1. Ensure you are using @nuxtjs/axios in your project
  2. Install the module yarn add @awes-io/vue-mc
  3. Now you are ready to build models and collections
  4. 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: true
        }
    }
}

class Todos extends BaseCollection {
    model() {
        return Todo
    }
}

export default Todos

Build before release a new version

$ yarn build

Ensure to write proper commit message according to Git Commit convention