Simple Pywebview
application using Vue 3
for the frontend with parcel
bundler.
Supported Platforms
Platforms | Tested |
---|---|
Windows | ✅ |
Linux [Debian based] |
✅ |
Clone this repo and run this commands on your terminal
yarn run init
that will install all dependencies to run the app.
Note : Please refer to installation guide
and make sure all dependencies are set to run pywebview
application.
On your terminal run this command
yarn start
Note : This template don't support hot reload to apply changes on your frontend
code you need
to right click and refresh
Build the application using this command
yarn build
This will build the application to production on publish
directory.
Note : Please make sure to set
DEBUG = FALSE
in main.py
before deploying the app for production.
Serve
Run this command to start development server vue (frontend) application only.
yarn vue-serve
Build
Run this command to build vue (frontend) application only.
yarn vue-build
This will build the vue application to production on dist
directory.
Lint
Run this command to lint your vue code.
yarn vue-lint
Run this command install additional python dependencies.
yarn install-dep <dependency_1> <dependency_2>
That command will call pip
inside pywebview venv
to install python .