nvm use
- Install dependencies:
npm install
- Run webpack to watch for changes in background:
npm run dev &
- Start HTTP server:
python3 -m http.server -d public
- Have fun and remember to stop the background job with
kill %1
Before merging a PR that updates app/main.js
, be sure to update the v
url param within the bundle.js
import in public/index.html
.
A script like this can be used (Python 3.6+)
import secrets
secrets.token_urlsafe(24)
# e.g. hXQCliWSIfOVCpFdslPMr3iMuSvTZelc
Or a number can just be used and incremented.