从零开始构建一个Web框架

2作者: NewSmoke387 天前原帖
Draco是一个Hack Club(https://hackclub.com)项目,名为YSWS(You Ship We Ship)——青少年们从零开始构建一个可用的服务器端网页框架。完成后,我们将送你一个机械键盘和一个SSD。 这个想法源于我自己构建的HTTP服务器Beasty,完全基于原始TCP。当你亲手解析第一行请求,并且浏览器真的做出响应时,某种东西就会触发。你不再把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]