{"id":15715562,"url":"https://github.com/technicalparadox/reactvitemduicfworkerts-template","last_synced_at":"2026-05-03T18:32:49.913Z","repository":{"id":256089738,"uuid":"854298840","full_name":"TechnicalParadox/ReactViteMduiCfWorkerTs-Template","owner":"TechnicalParadox","description":"A template for using React/Vite, MDUI, and CF Workers in Typescript","archived":false,"fork":false,"pushed_at":"2024-09-08T22:37:06.000Z","size":66,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T20:18:06.744Z","etag":null,"topics":["cloudflare","material-you","mdui","react","serverless","typescript","vite","workers"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TechnicalParadox.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-08T22:32:26.000Z","updated_at":"2024-09-08T22:40:17.000Z","dependencies_parsed_at":"2024-09-08T23:38:40.783Z","dependency_job_id":null,"html_url":"https://github.com/TechnicalParadox/ReactViteMduiCfWorkerTs-Template","commit_stats":null,"previous_names":["technicalparadox/reactvitemduicfworkerts-template"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechnicalParadox%2FReactViteMduiCfWorkerTs-Template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechnicalParadox%2FReactViteMduiCfWorkerTs-Template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechnicalParadox%2FReactViteMduiCfWorkerTs-Template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechnicalParadox%2FReactViteMduiCfWorkerTs-Template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TechnicalParadox","download_url":"https://codeload.github.com/TechnicalParadox/ReactViteMduiCfWorkerTs-Template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246372743,"owners_count":20766635,"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","material-you","mdui","react","serverless","typescript","vite","workers"],"created_at":"2024-10-03T21:42:00.597Z","updated_at":"2026-05-03T18:32:49.854Z","avatar_url":"https://github.com/TechnicalParadox.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Vite/React, MDUI, Cloudflare Worker, TS Template\n\n0. `npm install` in both frontend and backend folders.\n1. Create `backend/.dev.vars` and set `environment=\"development\"`\n2. Adjust name of backend worker in .wrangler.toml\n3. Adjust names in frontend and backend package.json\n4. Adjust domains in `frontend/src/helpers/environment_detection.ts` and in `backend/src/index.ts` to be actual site domains, development domains should work as is.\n5. In frontend, `npm run dev` to start vite development server\n6. In backend, `npx wrangler init` to start cf wroker development server\n7. You now have a basic Vite/React site with MDUI toggleable auuto/light/dark theme and Cloudflare worker integration!\n\nPackages: Hono, Oslo, @mui/material, react, etc.\n\nThe CF worker has a Cors policy that allows requests from localhost when in development and prodDomains in production.\nThe frontend has a baseUrl constant to automatically adjust fetches to the cloudflare worker based on local development/production environment.\nThe frontend also has a isDev constant to detect devMode, which can be used for only console logging in devMode.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechnicalparadox%2Freactvitemduicfworkerts-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechnicalparadox%2Freactvitemduicfworkerts-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechnicalparadox%2Freactvitemduicfworkerts-template/lists"}