- cloud/storage.py: R2 (S3-compatible) client — upload, presigned view/download URLs, delete-by-prefix. - cloud/videos.py: archive a completed managed job's clips to R2 under users/<uid>/<job>/, GET /api/history (private signed links), and a retention sweeper that deletes a user's videos 7 days after their subscription ends. - models.py: user_videos table (created via create_all). - app.py: archive clips to R2 on managed-job completion. - billing.py: email the admin the moment a subscriber hits cancel. - Frontend: History tab (library grid with per-video view + download). R2 bucket 'openshorts-videos' + scoped API token created; end-to-end verified: archive -> presigned GET (200) -> purge after grace -> object 404. |
||
|---|---|---|
| .. | ||
| public | ||
| src | ||
| .gitignore | ||
| Dockerfile | ||
| eslint.config.js | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| postcss.config.js | ||
| README.md | ||
| tailwind.config.js | ||
| vite.config.js | ||
React + Vite
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel (or oxc when used in rolldown-vite) for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
React Compiler
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.
Expanding the ESLint configuration
If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the TS template for information on how to integrate TypeScript and typescript-eslint in your project.