从零开始构建 Web 框架

2作者: NewSmoke383 天前
Draco 是一个 Hack Club (https://hackclub.com) 的 YSWS(You Ship We Ship)项目——青少年从零开始构建一个可用的服务端 Web 框架。完成并交付后,我们将寄给你一把机械键盘 + 固态硬盘。 这个想法源于我从原始 TCP 构建 Beasty——我自己的 HTTP 服务器。当你手动解析你的第一行请求,并且浏览器真的响应了,就会有某种顿悟。你不再认为 HTTP 是魔法,而是开始把它看作字节。我希望 50 个青少年也能有这种感觉。 该项目有 6 个里程碑——从打开一个 TCP 套接字一直到中间件和自定义路由。如果你有动力,一个周末就能完成,大约需要 15 个小时的专注工作。 Draco 项目地址:[https://github.com/NewSmoke38/draco]
查看原文
Draco is a Hack Club (https:&#x2F;&#x2F;hackclub.com) YSWS (You Ship We Ship) — teenagers build a working server side web framework from scratch. Ship it, and we send you a mechanical keyboard + SSD.<p>The idea came from building Beasty — my own HTTP server from raw TCP. The moment you parse your first request line by hand and a browser actually responds, something clicks. You stop thinking of HTTP as magic and start thinking of it as bytes. That&#x27;s the feeling I want 50 teenagers to have.<p>The project has 6 milestones — from opening a TCP socket all the way to middleware and custom routing. Doable in a weekend if you&#x27;re motivated, ~15 hours of focused work.<p>Draco site: [https:&#x2F;&#x2F;github.com&#x2F;NewSmoke38&#x2F;draco]