py -m venv .venv
.venv\Scripts\Activate
py -m pip install -r requirements.txt
git add .
git commit -m "add .gitignore, readme, and requirements"
git push origin main
Open a terminal (VS Code menu "View" / "Terminal") in the root project folder and run these commands.
shiny run --reload --launch-browser dashboard/app.py
Open a browser to http://127.0.0.1:8000/ and test the app.
Open a terminal (VS Code menu "View" / "Terminal") in the root project folder and run these commands.
.venv\Scripts\Activate
shiny run --reload --launch-browser dashboard/app.py
Export to docs folder and test GitHub Pages locally.
Open a terminal (VS Code menu "Terminal" / "New Terminal") in the root project folder and run these commands.
.venv\Scripts\Activate
shiny static-assets remove
shinylive export dashboard docs
py -m http.server --directory docs --bind localhost 8008
Open a browser to http://[::1]:8008/ and test the Pages app.
Open a terminal (VS Code menu "Terminal" / "New Terminal") in the root project folder and run these commands.
git add .
git commit -m "Useful commit message"
git push -u origin main