Build a dinosaur runner game with Deno, pt. 1
Part one of a series building a browser dinosaur runner game sets up a Deno project that serves static files and deploys it. It covers `deno init`, adding the Oak framework from JSR, defining `dev` and `start` tasks in deno.json with explicit `--allow-net`/`--allow-read`/`--env-file` permissions, and a minimal Oak server that serves `public/` via `context.send`. It also adds an `/api` router with a health check endpoint, then deploys with `deno deploy` using `src/main.ts` as the entry point.
Related posts
- Build an Astro site with Deno
Deno mediumAdeptDeno 2's Node and npm compatibility lets you scaffold and run an Astro project entirely with Deno tooling: `deno -A npm:create-astro@latest` to scaffold, `deno install --allow-scripts` for dependencies, and `deno task dev` to run package.json scripts. The walkthrough builds a small dinosaur site with an index page generated from a JSON file and a dynamic SSR route (`[dinosaur].astro`) that reads `Astro.params` and redirects to 404 for unknown entries. One caveat: the Deno language server doesn't yet support `.astro` files, so editors may show false errors.
- Build a dinosaur runner game with Deno, pt. 2
Deno mediumAdeptStage 2 of a Deno dinosaur runner tutorial turns a static landing page into a playable HTML5 canvas game. A DinoGame class tracks game state, runs a requestAnimationFrame update/render loop, handles Space, arrow-up and click input for jumping, and applies simple gravity and velocity physics with a ground clamp. The stage also covers canvas rendering of a rectangle dino, DOM score and status helpers, reset logic and a health check against the Stage 1 Oak API, all deployable to Deno Deploy.
- Build Apps in Deno with Frameworks such as React, Vue, Express, and more.
Deno mediumAdeptDeno 1.28's npm support lets you use npm-distributed frameworks like Express, React and Vue directly via `npm:` specifiers. You don't need package.json, node_modules or a separate install step, and Deno's built-in toolchain is available throughout. Step-by-step examples build a dinosaur API with Express. They then build the same dinosaur list/detail app in React (Vite scaffold via create-vite-extra, an Oak backend with CORS, react-router-dom) and in Vue (reactive store, Suspense, vue-router).
- Build a REST API with Express, TypeScript, and Deno
Deno mediumAdeptDeno runs Express with TypeScript without any TypeScript build configuration: Express is imported through an npm: specifier and its types are pulled in with a @deno-types comment. The walkthrough sets up a server that reads its port from the environment and starts it with explicit Deno permissions (--allow-read, --allow-net, --allow-env), which limits what third-party code can access. It also defines dev and start tasks in deno.jsonc, adds a request-logging middleware, and serves mock user data imported as JSON through /users and /users/:id routes, giving a REST API starting point in under 30 lines.
- Build and Ship Astro Sites with Deno and Deno Deploy
Deno mediumAdeptAstro sites can be built with the Deno runtime and hosted on Deno Deploy in two modes. Static output from `npm run build` is served via the Deno standard library file server and auto-deployed from GitHub Actions. Server-rendered apps use Astro's `output: "server"` mode with a Deno adapter, a generated `server/entry.mjs` entrypoint, and npm scripts rewritten to run Astro through `deno run -A --unstable npm:astro`. A template app shows SSR form handling in component scripts, client-side delete calls to an API route, and data persistence that can be switched to Deno KV.