Files
OpenDTU/webapp/README.md

28 lines
680 B
Markdown
Raw Normal View History

# OpenDTU web frontend
You can run the webapp locally with `yarn dev`. If you enter the IP of your ESP in the `vite.user.ts` beforehand (template can be found in `vite.config.ts`), 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.
2022-04-11 21:48:12 +02:00
2022-10-17 19:18:45 +02:00
## Project Setup
```sh
2022-04-11 21:48:12 +02:00
yarn install
```
2022-10-17 19:18:45 +02:00
### Compile and Hot-Reload for Development
2022-04-11 21:48:12 +02:00
2022-10-17 19:18:45 +02:00
```sh
yarn dev
2022-04-11 21:48:12 +02:00
```
2022-10-17 19:18:45 +02:00
### Type-Check, Compile and Minify for Production
```sh
2022-04-11 21:48:12 +02:00
yarn build
```
2022-10-17 19:18:45 +02:00
### Lint with [ESLint](https://eslint.org/)
2022-04-11 21:48:12 +02:00
2022-10-17 19:18:45 +02:00
```sh
yarn lint
```