{"id":16182377,"url":"https://github.com/drawveloper/qwik-app-deno-example","last_synced_at":"2025-03-19T02:30:38.564Z","repository":{"id":148526301,"uuid":"453251582","full_name":"drawveloper/qwik-app-deno-example","owner":"drawveloper","description":"Run Qwik on oak + Deno Deploy","archived":false,"fork":false,"pushed_at":"2022-02-10T14:30:33.000Z","size":223,"stargazers_count":21,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-10T06:31:23.303Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/drawveloper.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":"2022-01-28T23:55:43.000Z","updated_at":"2024-07-28T11:47:25.000Z","dependencies_parsed_at":"2023-05-20T10:00:24.829Z","dependency_job_id":null,"html_url":"https://github.com/drawveloper/qwik-app-deno-example","commit_stats":null,"previous_names":["drawveloper/qwik-app-deno-example"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drawveloper%2Fqwik-app-deno-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drawveloper%2Fqwik-app-deno-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drawveloper%2Fqwik-app-deno-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drawveloper%2Fqwik-app-deno-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drawveloper","download_url":"https://codeload.github.com/drawveloper/qwik-app-deno-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221720273,"owners_count":16869451,"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":[],"created_at":"2024-10-10T06:30:56.127Z","updated_at":"2024-10-27T19:01:54.624Z","avatar_url":"https://github.com/drawveloper.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Server-side Qwik on Deno (\u0026 Tailwind)\n\nThis is a working example of a Qwik app with server-side rendering and static asset serving performed by Deno, deployable to Deno Deploy.\n\nIf you want a simpler JSX-on-Deno stack, you should try `nano-jsx`: https://github.com/FutureDrivenDev/nano-jsx-denon-live-reload\n\n## How it works\n\nThis project adds a `deno.json` which configures deno to understand Qwik's JSX rules:\n\n```\n{\n  \"compilerOptions\": {\n    \"jsx\": \"react-jsx\",\n    \"jsxImportSource\": \"https://cdn.esm.sh/@builder.io/qwik\",\n    \"lib\": [\"dom\", \"dom.asynciterable\", \"deno.ns\"]\n  }\n}\n```\n\nAnd an import map at `import_map.json` to help deno understand the qwik imports:\n\n```\n{\n  \"imports\": {\n    \"@builder.io/qwik\": \"./node_modules/@builder.io/qwik/core.mjs\",\n    \"@builder.io/qwik/jsx-runtime\": \"./node_modules/@builder.io/qwik/jsx-runtime.mjs\",\n    \"@builder.io/qwik/server\": \"./node_modules/@builder.io/qwik/server/index.mjs\",\n    \"@builder.io/qwik/optimizer\": \"./node_modules/@builder.io/qwik/optimizer.mjs\"\n  }\n}\n```\n\nThen, we create a `server/server.ts` which is supposed to **replace** the original `server/index.js` (an Express server in the node example).\n\nThen, `npm install`, `npm build` to build the Qwik files, and finally run `deno`:\n\n- If you use `denon`, simply `denon start`\n- Else, run: `deno run --import-map=import_map.json --config ./deno.json --allow-net --allow-read --allow-env --unstable --no-check server/server.ts`\n\nAnd it works :) welcome to Qwik on Deno!\n\n# Compatible with Deno Deploy\n\nSimply select the `server/server.ts` file as an entrypoint and you've got yourself a Qwik app powered by Deno **on the edge.** 💥\n\nPS: You have to build and commit the dist files so Deno Deploy can use them. Qwik build is so tiny, it makes little difference.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrawveloper%2Fqwik-app-deno-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrawveloper%2Fqwik-app-deno-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrawveloper%2Fqwik-app-deno-example/lists"}