Giter Site home page Giter Site logo

vuex-orm-examples-nuxt's Introduction

Vuex ORM Examples Nuxt

This example application demonstrates how Vuex ORM can be integrated with Nuxt. It's a simple ToDo application which can assign users to ToDo items. You will learn how Vuex ORM connects users with ToDo items and how easy it is to create, edit and delete both users and ToDo items.

Vuex ORM Nuxt Example

Running The Example

Play on CodeSandbox or clone repository and run the following commands:

# NPM
npm install
npm run dev

# Yarn
yarn install
yarn dev

Contribution

If you would like to make any contribution that may make this example application easier to understand for people who are new to Vuex ORM, please open an issue or pull request 🎉

vuex-orm-examples-nuxt's People

Contributors

atinux avatar cuebit avatar kiaking avatar smnscp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

vuex-orm-examples-nuxt's Issues

Adding new items overwrites existing items

I am running into an issue in my own project with vuex-orm and cloned this project to see that it has the same issue.

Steps to reproduce

  1. I cloned the project
  2. run npm run dev
  3. click on 'ADD TODO'

ps. Refreshing the page will change the 'database pointer' and make only a few items get overwritten.
Refresh again and all items will stay intact.
The issue will resurface again after you kill npm and run npm run dev again.

Before
before

After
after

Igor

// Here we are stubbing the initial data. In the real world, this
async fetch () { // Here we are stubbing the initial data. In the real world, this // should be the response from the API Backend. const initialData = await data() Todo.create({ data: initialData }) }

[Feature Suggestion] Add CRUD and Async fetch feeds

Thanks for the really nice code example in Nuxt and Vuex. I'm still very new to Nuxt.js, but I'm learning slowly.

Can we add a CRUD example and async/ fetch example for a json feed, that makes use of your vuex-orm package?

Here are some links from my investigation:

  1. https://github.com/nuxt/hackernews (this is a 1st party package from the creators of Nuxt. As elegant as it is, it's not simple for me to grasp everything. This doesn't have CRUD but is a really nice example of fetching json feeds, caching of feeds, etc.) Demo at https://hn.nuxtjs.org/

  2. https://github.com/nico-amsterdam/vue-crud-nuxt (demo link here). This is a great example of CRUD in Nuxt.

  3. https://github.com/guillaumebriday/todolist-frontend-nuxt
    Another great example of CRUD in Nuxt (it uses your vuex-orm package)

Can we add CRUD and async fetch for feeds (like in the hackernews repo) to this repo?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.