VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).
npm install
npm run dev
npm run build
There exsits a public demo: http://demo.open-haus.io
It is deployed with docker and runs the frontend & backend container.
The instance is rested to its default values every 10 Minutes.
No authentication required, full API support.
Name | Default value | Description |
---|---|---|
NODE_ENV | production |
node.js environment |
NGINX_HOSTNAME | open-haus.lan, open-haus.local |
nginx hostname |
BACKEND_PROTOCOL | http |
OpenHaus backend http protocol |
BACKEND_HOST | 127.0.0.1 |
OpenHaus backend http host |
BACKEND_PORT | 8080 |
OpenHaus backend http port |
RESOLVER | 127.0.0.11 |
DNS resolver used inside the backend location block. |
NOTE:
You can also use the environment variablesBACKEND_PROTOCOL
,BACKEND_HOST
&BACKEND_PORT
while you develop local.
E.g. runBACKEND_HOST=open-haus.local npm run dev
to use your local hosted backend instead of the loopback address.
npm run build
npm run build:docker
docker run --net=host --rm --name frontend --env BACKEND_HOST=172.17.0.1 openhaus/frontend:latest
The backend runs on the docker host
docker save openhaus/frontend:latest | gzip > ./frontend-vX.X.X-docker.tgz