This project was bootstrapped with Vue CLI. Its arrangement of components is designed to be similar to that of the components in the React example. The code is organized into:
src/database.js
: contains all database logic in its exportedDatabase
class.src/App.vue
: the top-level Vue.js app instantiates aDatabase
on its creation to handle database changes.src/components/*.vue
: the components to the to-do list; sends events up to theApp.vue
component on user interactions.
Before you can run the app in your browser, you will have to install its dependencies with:
npm install
Run npm run serve
for a dev server. Navigate to http://localhost:1123
. The app will automatically reload if you change any of the source files. You will also see any lint errors in the console.
Run npm run build
to build the project. The build artifacts will be stored in the build/
directory.
- Vue CLI guide
- Vue.js Guide for core Vue 3 concepts
- To get more help on Dexie check out the Dexie Wiki