{"id":16256295,"url":"https://github.com/atinux/coffee-or-tea","last_synced_at":"2025-03-19T21:30:57.579Z","repository":{"id":164456886,"uuid":"639774393","full_name":"atinux/coffee-or-tea","owner":"atinux","description":"Demo of Nuxt with Edge-Side Rendering on CloudFlare Pages.","archived":false,"fork":false,"pushed_at":"2023-06-20T16:01:59.000Z","size":692,"stargazers_count":25,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T23:25:33.110Z","etag":null,"topics":["d1","drizzle-orm","edge-side-rendering","nuxt","sqlite"],"latest_commit_sha":null,"homepage":"https://vue-london.pages.dev","language":"Vue","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/atinux.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":"2023-05-12T07:41:51.000Z","updated_at":"2025-01-29T11:43:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"e47efb4d-6009-4f8b-9cb2-819fd7ddd83d","html_url":"https://github.com/atinux/coffee-or-tea","commit_stats":null,"previous_names":["atinux/coffee-or-tea"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atinux%2Fcoffee-or-tea","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atinux%2Fcoffee-or-tea/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atinux%2Fcoffee-or-tea/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atinux%2Fcoffee-or-tea/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atinux","download_url":"https://codeload.github.com/atinux/coffee-or-tea/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244056425,"owners_count":20390719,"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":["d1","drizzle-orm","edge-side-rendering","nuxt","sqlite"],"created_at":"2024-10-10T15:44:52.734Z","updated_at":"2025-03-19T21:30:57.574Z","avatar_url":"https://github.com/atinux.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Coffee or Tea?\n\nA demo applicatio using Nuxt with edge-side rendering on CloudFlare Pages with D1 as database.\n\nCurrently based on [nuxt-space-layer](https://www.npmjs.com/package/nuxt-space-layer) to make it easier to get started with CloudFlare Pages \u0026 D1.\n\nDemo is on https://coffee-or-tea.pages.dev\n\n[![demo-screenshot](https://github.com/Atinux/coffee-or-tea/assets/904724/b6eb9925-21b1-4ad4-8c86-2bcefc9f1973)](https://coffee-or-tea.pages.dev)\n\n## Setup\n\nMake sure to install the dependencies:\n\n```bash\n# pnpm\npnpm install\n```\n\nCopy the `.env.example` to `.env` and fill the env variables, `NUXT_SESSION_PASSWORD` is a random string of at least 32 characters.\n\nCreate a [GitHub OAuth app](https://github.com/settings/applications/new) and add the client id and secret to the `.env` file, homepage and callback url can be set to `http://localhost:3000`.\n\n## Development Server\n\nStart the development server on `http://localhost:3000`\n\n```bash\npnpm dev\n```\n\n## Production\n\nBuild the application for production:\n\n```bash\npnpm build\n```\n\nLocally preview production build:\n\n```bash\npnpm preview\n```\n\nCheck out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.\n\n## Deploy on CloudFlare Pages\n\nMake sure to create a GitHub OAuth application for your production deployment.\n\nOnce you linked your GitHub/GitLab repository, add the following env variable:\n\n```bash\nNODE_VERSION=18\nNUXT_SESSION_PASSWORD=your-secret-password-of-at-least-32-chars\nNUXT_OAUTH_GITHUB_CLIENT_ID=your-github-oauth-client-id\nNUXT_OAUTH_GITHUB_CLIENT_SECRET=your-github-oauth-client-secret\n```\n\nMake sure to create a D1 database use the SQL console of it to add your migrations from the `server/db/migrations` folder.\n\nLink your D1 database with the `D1_DB` variable name to your CF Pages project (Settings -\u003e Functions -\u003e D1 database bindings). You may have to retry the latest deployment to make sure the binding is active.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatinux%2Fcoffee-or-tea","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatinux%2Fcoffee-or-tea","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatinux%2Fcoffee-or-tea/lists"}