How to use the kinto function in kinto

To help you get started, we’ve selected a few kinto examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github joezimjs / Vue-Tutorial-Search-Example / src / stores / tutorials.js View on Github external
import Kinto from 'kinto'

let db = new Kinto({
  remote: 'https://tut-search.herokuapp.com/v1/',
  bucket: 'tut-search'
})
let tutorialAPI = db.collection('tutorials')

if (process.env.NODE_ENV === 'development') {
  window.tutorialAPI = tutorialAPI
  console.debug('Tutorial API available at `tutorialAPI`')
}

export default {
  namespaced: true,
  state: {
    data: []
  },
  getters: {

kinto

An Offline-First JavaScript client for Kinto.

Apache-2.0
Latest version published 11 months ago

Package Health Score

75 / 100
Full package analysis