Skip to content

Commit

Permalink
real-time updates
Browse files Browse the repository at this point in the history
  • Loading branch information
giuseppeg committed Feb 3, 2021
1 parent b585eeb commit 8056ef0
Show file tree
Hide file tree
Showing 9 changed files with 24,563 additions and 0 deletions.
21 changes: 21 additions & 0 deletions examples/query-subscription/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.DS_Store
node_modules
/dist

# local env files
.env.local
.env.*.local

# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
39 changes: 39 additions & 0 deletions examples/query-subscription/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# query-subscription

Example of using `datocms-listen` to implement real-time updates in a Vue.js v2 application.

## Project setup
```
npm install
```

### Compiles and hot-reloads for development
```
npm run serve
```

### Compiles and minifies for production
```
npm run build
```

### Lints and fixes files
```
npm run lint
```

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).

## To test locally

Get to the main `vue-datocms` folder and run:
``` bash
$ npm link
```

Then in the `examples/query-subscription` folder run:
``` bash
$ npm link vue-datocms
```
to use the code from the above folder in the example project.
5 changes: 5 additions & 0 deletions examples/query-subscription/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset'
]
}
Loading

0 comments on commit 8056ef0

Please sign in to comment.