deno handbookPreface The Deno Handbook ## Preface The Deno Handbook follows the 80/20 rule: learn in 20% of the time the 80% of a topic. In particular, the goal is to get you up to speed quickly with Deno. This book reach me on Twitter @flaviocopes. Enjoy! ## The Deno Handbook I explore new projects every week, and it's rare that one hits my attention so much as Deno did.  ## What is Deno? If you are familiar with Node.js, the popular server-side JavaScript ecosystem, then Deno is just like Node. Except deeply improved in many ways0 码力 | 46 页 | 4.11 MB | 2 年前3
Get started with Deno## Get started with Deno @hijiangtao ## 示例一 Hello world import { serve } from "https://deno.land/std@0.69.0/http/server.ts"; const s = serve({ port: 8000 }); console.log("http://localhost:8000/"); ## 示例二 Chat room deno run --allow-net --allow-read https://deno.land/std/examples/chat/server.ts ## 目录 1/What is Deno 2/ Deno and Node 3/ Debate on Deno ## What is Deno ## “Deno 是基于 V8 并采用 Rust 构建的 JavaScript 和 TypeScript 运行时环境。” Deno is a simple, modern and secure runtime for JavaScript and TypeScript that uses V8 and is built in Rust. https://deno.land/ ## Deno / 基于 V8 V8 是一个由 Google 开发的开源 JavaScript0 码力 | 43 页 | 1.51 MB | 2 年前3
Easy routing for local development - Using Traefik for routing paths
to web apps - Setup a reverse proxy to simplify routinglike to see the repository, it’s on my GitHub - Darth-Knoppix/traefik-mfe-deno. This includes the docker-compose.yml file and the Deno server. ## What's a reverse proxy? A server that sits in front of labels: - traefik.enable=false The web app config The web apps themselves will all use the same Deno web server source, but run on different containers with slightly different config. Mainly, the APP_NAME involved than just spitting out some basic HTML. The Deno web server container will look like this: services: home: restart: always image: denoland/deno:1.11.2 command: run --allow-net --allow-read0 码力 | 5 页 | 576.61 KB | 2 年前3
Node 的设计错误得更好。 免责声明:我只是提出了一个初具雏形的原型。 除非你急于卷起袖子跳进 I1db,否则不要费劲去尝试建造它。 即便如此... Deno https://github.com/ry/deno V8上一个安全的 TypeScript 运行时 ## Deno 目标:安全 - 利用 JavaScript 是一个安全沙箱的事实。 默认情况下,脚本应该在没有任何网络或文件系统写访问的情况下运行。 linter) - 不允许任意本地函数绑定到V8中 所有的系统调用都是通过消息传递完成的(原BoFF序列化) 有两个本地函数: send 和 rev。 这既简化了设计,又使系统更易于审核。 Deno Process (Privileged) V8 VM (Unprivileged) Timers File System Timers Network Dispatcher 












