Solution: Adding Users and Migrating to Oak
Review the solution for the Adding Users and Migrating to Oak challenge.
Solution
Task 1
Add the following dependencies in the src/deps.ts
file:
Press + to interact
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
...