OpenDTU/webapp
Bernhard Kirchen 452679e90b make vite proxy target easily configurable
the current proxy target IP address is probably only working for a
single developer at a time. this change introduces a vite.user.ts, which
is ingored by GIT, and which can define a proxy_target that works for
the respective developer.

this does not change the default behavior, as the fallback value is
still the old IP address. if the new vite.user.ts file does not exist,
or if it does not export proxy_target, the fallback value is used.

file vite.config.ts adds an example in a comment of how to bootstrap a
vite.user.ts.
2023-08-09 16:58:58 +02:00
..
.vscode webapp: Migrated from vue-cli to vite 2022-10-17 19:26:04 +02:00
public Feature: Added touch icon for iOS and Android 2023-06-21 22:44:18 +02:00
src Move units from description to postfix for AP timeout 2023-07-22 18:30:18 +02:00
.eslintrc.cjs webapp: Migrated from vue-cli to vite 2022-10-17 19:26:04 +02:00
.gitignore make vite proxy target easily configurable 2023-08-09 16:58:58 +02:00
env.d.ts webapp: Migrated from vue-cli to vite 2022-10-17 19:26:04 +02:00
index.html Feature: Added touch icon for iOS and Android 2023-06-21 22:44:18 +02:00
package.json webapp: Update dependencies 2023-08-03 22:36:48 +02:00
README.md Added additional documentation for webapp development 2022-11-25 18:14:33 +01:00
tsconfig.config.json webapp: Update dependencies 2023-04-24 20:21:51 +02:00
tsconfig.json webapp: Enable stricter error reporting 2023-04-24 20:31:24 +02:00
vite.config.ts make vite proxy target easily configurable 2023-08-09 16:58:58 +02:00
yarn.lock webapp: Update dependencies 2023-08-03 22:36:48 +02:00

OpenDTU web frontend

You can run the webapp locally with yarn dev. If you enter the IP of your ESP in the vite.config.ts beforehand, all api requests will even be proxied to the real ESP. Then you can develop the webapp as if it were running directly on the ESP. The yarn dev also supports hot reload, i.e. as soon as you save a vue file, it is automatically reloaded in the browser.

Project Setup

yarn install

Compile and Hot-Reload for Development

yarn dev

Type-Check, Compile and Minify for Production

yarn build

Lint with ESLint

yarn lint