This tutorial walks through setting up a basic Deno project to serve static files for a browser-based dinosaur runner game. It covers project initialization with deno init, configuring the Oak framework for serving HTML/CSS/JS files, setting up environment variables, creating API routes with a health check endpoint, and deploying the application to Deno Deploy. The tutorial establishes the foundational server infrastructure needed before implementing game logic in subsequent parts.

6m read timeFrom deno.com
Post cover image
Table of contents
What You’ll LearnSetting up a basic deno projectProject ConfigurationBasic HTMLThe Server ( src/main.ts )Adding routes ( src/routes/api.routes.ts )Deploying to Deno DeployWhat’s Next?

Sort: