Search⌘ K

Solution: Adding Users and Migrating to Oak

Explore adding user management features and migrating your Deno web application to the Oak framework. Understand how to incorporate dependencies, set up routing, handle errors, and connect your router for improved scalability and security.

We'll cover the following...

Solution

Task 1

Add the following dependencies in the src/deps.ts file:

TypeScript 3.3.4
export { serve } from "https://deno.land/std@0.83.0/http/server.ts";
export {Application} from "https://deno.land/x/oak@v6.3.1/mod.ts"
export {Router} from "https://deno.land/x/oak@v6.3.1/mod.ts"

After adding dependencies, create a lock file by using the following command:

deno cache --lock=lock.json --reload --lock-write src/deps.ts
...