{"id":24594608,"url":"https://github.com/vwh/cfw-upload","last_synced_at":"2025-04-30T13:12:59.278Z","repository":{"id":273881482,"uuid":"857552283","full_name":"vwh/cfw-upload","owner":"vwh","description":"Simple serverless website built with Cloudflare services to explore their ecosystem—using R2 for storage, D1 for the database, Pages for static hosting, and Workers for serverless functions.","archived":false,"fork":false,"pushed_at":"2024-10-08T17:05:34.000Z","size":1369,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T16:22:55.288Z","etag":null,"topics":["cloudflare","cloudflare-d1","cloudflare-r2","cloudflare-workers","cloudlfare-pages","d1","edge","r2","serverless","workers"],"latest_commit_sha":null,"homepage":"https://upload.vwh.sh","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vwh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-15T00:26:34.000Z","updated_at":"2025-02-17T21:16:29.000Z","dependencies_parsed_at":"2025-01-23T14:32:43.889Z","dependency_job_id":"121ac22a-750a-4700-8d23-a2cb8d942e43","html_url":"https://github.com/vwh/cfw-upload","commit_stats":null,"previous_names":["vwh/cfw-upload"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vwh%2Fcfw-upload","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vwh%2Fcfw-upload/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vwh%2Fcfw-upload/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vwh%2Fcfw-upload/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vwh","download_url":"https://codeload.github.com/vwh/cfw-upload/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251711369,"owners_count":21631293,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloudflare","cloudflare-d1","cloudflare-r2","cloudflare-workers","cloudlfare-pages","d1","edge","r2","serverless","workers"],"created_at":"2025-01-24T11:15:37.839Z","updated_at":"2025-04-30T13:12:59.227Z","avatar_url":"https://github.com/vwh.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# VWH Upload\n\nSimple serverless website built with Cloudflare services to explore their ecosystem—using R2 for storage, D1 for the database, Pages for static hosting, and Workers for serverless functions.\n\n\u003c/div\u003e\n\n## Getting Started\n\n### 1. Clone the Repository\n\n```bash\ngit clone https://github.com/vwh/vwh-upload\ncd vwh-upload\n```\n\n### 2. Install Dependencies\n\n#### Server\n\n```bash\nbun install\n```\n\n#### Client\n\n```bash\ncd client\nbun install\n```\n\n### 3. Set Up the Database\n\n1. Create the database:\n\n   ```bash\n   bun run db:create\n   ```\n\n2. Update the **Database ID** in `wrangler.toml`.\n3. Migrate the database:\n\n   ```bash\n   bun run db:migrate\n   ```\n\n   (Run migration twice to ensure updates are applied.)\n\n### 4. Set Up the R2 Bucket\n\n```bash\nbun run bucket:create\n```\n\n### 5. Build and Deploy the Static Page\n\n1. Create the page:\n\n   ```bash\n   bun run page:create\n   ```\n\n2. Build the client code:\n\n   ```bash\n   cd client\n   bun run build\n   ```\n\n3. Deploy the page:\n\n   ```bash\n   bun run page:deploy\n   ```\n\n### 6. Deploy the Worker\n\n```bash\nbun run deploy\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvwh%2Fcfw-upload","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvwh%2Fcfw-upload","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvwh%2Fcfw-upload/lists"}