This project demonstrates the usage of the Elexis-Server (ES) vue.js plugin.
npm install
npm run serve
This project was set-up by executing the following steps:
- Install vue-cli
vue-create vue-es-demo-project
- Select
default
on the question arising cd vue-es-demo-project
vue add router
- Select
yes
on the questionUse history mode for router?
vue add vuex
npm i @col.panic/vue-es -s
npm i pug-plain-loader
- Modify
main.js
to install the plugin - Modify
components/HelloWorld.vue
to use the plugin
In order to run it, you need an Elexis-Server running on es.localhost
, which is essentially the same IP as localhost
. The reason the server has to run on es.localhost
is that HSTS is being
activate the first time you access the ES, forcing any further communication over TLS. So as not to block your own app, running
on localhost
we have to point to a different localhost name.