···13131414## Usage
15151616+Install all development dependencies using `npm`:
1717+1618```bash
1719% npm install --save-dev
1820```
···21232224In the project directory, you can run:
23252424-- `npm run dev` - Runs the app in the development mode. Open [http://localhost:5173](http://localhost:5173) to view it in the browser.
2626+- `npm run dev` - Runs the app in the development mode. Open [https://localhost:5173](https://localhost:5173) to view it in the browser. Only works with certificate files `../https_cert-key.pem` and `../https_cert.pem`. See [./vite.config.ts](./vite.config.ts):
2527- `npm run build` - Builds the app for production to the `./http` folder. To be used with a local `npm run preview`.
2628- `npm run build-github` - Builds the app for production and hosting at GitHub pages to the `./http` folder.
2729- `npm run preview` - Run the app in production mode. Open [https://localhost:4173](https://localhost:4173) to view it in the browser. Only works with certificate files `../https_cert-key.pem` and `../https_cert.pem`. See [./vite.config.ts](./vite.config.ts):
···2931 ```javascript
3032 server: {
3133 https: {
3232- key: fs.readFileSync("../https_cert-key.pem"),
3333- cert: fs.readFileSync("../https_cert.pem"),
3434+ key: fs.readFileSync("../localhost_https_cert-key.pem"),
3535+ cert: fs.readFileSync("../localhost_https_cert.pem"),
3436 },
3537 },
3638 ```