deno
Deno mini projects build for the sake of testing Deno Deploy platform
VSCode and deno lsp
To make VSCode and deno lsp happy abut the types please follow instructions from this issue: denoland/deployctl#24 (comment)
Serving static assets
Code copied from deno tutorial: https://deno.com/deploy/docs/serve-static-assets
To use it in deno deploy just copy this link to static/mod.ts
To run it locally execute:
deployctl run --libs="" --watch ./static/mod.ts
(because of that types reference for vscode and deno lsp we need to pass empty libs)
Hosting Discord command
Code copied from deno tutorial: https://deno.com/deploy/docs/tutorial-discord-slash
To use it in deno deploy just copy this link to discord/mod.ts And follow instructions from here: https://deno.com/deploy/docs/tutorial-discord-slash#install-the-slash-command-on-your-discord-server
To run it locally execute:
deployctl run --libs="ns" --watch ./discord/mod.ts
(because some but not all types are referenced in imports)
Using FaundaDB
Code copied from deno tutorial: https://deno.com/deploy/docs/tutorial-faunadb
To use it in deno deploy just copy this link to fauna/quotes.ts And follow instructions from here: https://deno.com/deploy/docs/tutorial-faunadb#deploy-the-api
To run it locally execute:
FAUNA_SECRET=<secret> deployctl run --libs=ns,fetchevent --watch ./fauna/quotes.ts
(because some but not all types are referenced in imports)