Browser-based photobooth emulator with a retro movie-theater feel. Capture webcam photos, compose a classic strip, download PNG/JPEG or a print-ready PDF. Fully client-side.
cd /Users/tanokri/Desktop/Photobooth
npm install
npm run devThen open http://localhost:5173 in Chrome or Safari.
Camera access requires a secure context.
localhostworks. For phones on your LAN, use the network URL Vite prints (or deploy over HTTPS).
| Command | Description |
|---|---|
npm run dev |
Local development server |
npm run build |
Production build |
npm run preview |
Preview production build |
Your live URL will be:
https://tanokri02.github.io/PhotoMatic/
Push the source project, not install/build junk:
| Push | Do not push |
|---|---|
src/, index.html, config files |
node_modules/ |
package.json, package-lock.json |
dist/ |
.github/workflows/ |
.env / secrets |
README.md, .gitignore |
nested .git folders |
.gitignore already excludes node_modules and dist. GitHub Actions builds the site on every push to main.
- Commit and push this repo to
mainonhttps://github.com/Tanokri02/PhotoMatic. - On GitHub: Settings → Pages.
- Under Build and deployment, set Source to GitHub Actions.
- Open the Actions tab, wait for Deploy to GitHub Pages to finish (green check).
- Visit https://tanokri02.github.io/PhotoMatic/ and allow camera access.
- Share that HTTPS link with friends.
Camera APIs require HTTPS. GitHub Pages provides that for free.
vite.config.ts sets base: '/PhotoMatic/' so assets load correctly on Pages. Local npm run dev still works the same.