This app demonstrates Mesop's various components and features. Create your own Cloud Run app by following: https://google.github.io/mesop/guides/deployment/
From workspace root:
rm -rf demo/venv && \
virtualenv --python python3 demo/venv && \
source demo/venv/bin/activate && \
pip install -r demo/requirements.txt --no-binary pydantic
cd demo
mesop main.py
This app is deployed to Google Cloud Run.
$ gcloud run deploy mesop --source .
See our Mesop deployment docs for more background.
If you add more demos and want to re-generate screenshots, do the following steps:
- in
demo/screenshot.ts
changetest.skip
totest
- Run:
yarn playwright test demo/screenshot.ts
- Install cwebp using
brew install webp
or download from here. - From the workspace root, run:
`for file in demo/screenshots/*; do cwebp -q 50 "$file" -o "${file%.*}.webp"; done`