Files
photobooth/README.md
T
HayemR 100e5c3a87
Deploy photobooth / deploy (push) Has been cancelled
database integration
2026-05-26 09:07:16 +07:00

1.7 KiB

photobooth

This template should help get you started developing with Vue 3 in Vite.

VS Code + Vue (Official) (and disable Vetur).

Customize configuration

See Vite Configuration Reference.

Project Setup

yarn

Environment

Create .env.local (or copy from .env.example) and set:

VITE_API_BASE_URL=https://your-api.example.com

Compile and Hot-Reload for Development

yarn dev

Compile and Minify for Production

yarn build

Backend requirements (for auth + saved strips)

This app expects a backend that implements:

  • POST /auth/signup
  • POST /auth/login
  • POST /auth/refresh (uses HttpOnly refresh cookie)
  • POST /auth/logout
  • GET /me
  • GET /media?type=strip
  • POST /media (accepts dataUrl for strip PNG)
  • DELETE /media/:id

If frontend and backend are on different domains, backend must support:

  • CORS with an explicit Access-Control-Allow-Origin (not *)
  • Access-Control-Allow-Credentials: true
  • refresh cookie set with HttpOnly; Secure; SameSite=None