Write your own backend framework, ship a live app using it, win prizes!!
Write your own backend framework, ship a live app using it, win prizes!!
Now parse that raw text. Pull out the method (GET, POST), the path (/about, /api/users), the headers. Write the parser yourself, split on newlines. Handle the edge cases.
Done when: your code can tell you what path, method any request is asking for.
When someone asks for /about, your server needs to know what to do. Build that system. Design your API — what should using YOUR framework feel like? This is your creative decision. This is why no two Draco frameworks look the same.
Done when: different paths call different functions.
After your router works, your handlers need to send something back to the browser. Write a function that
puts a response onto the socket — status code, headers, body — and wrap it into something clean like
res.send() or res.json(). Your design, your call.
Now your framework can receive a request, route it, and reply to it. That's it. That's a working framework. Give it a name, publish it to npm, build a real web-app, and write its backend using your own framework, deploy it live, and send us the link!
Draco is for highschoolers! You need to be 13-18 years old to participate. :)
100% free* - all the prizes are donated to us or paid for by us!
We use our very own Hackatime and Lapse to track your time. You earn $5 per hour of coding you do to spend on the prizes!
Hack Club is the world's largest community of teenage makers, and a 501(c)(3) nonprofit. It is supported by donations from tech companies like GitHub and individuals like Michael Dell.
You can email me at shivanialive2007@gmail.com! :)
A program for teens by teens, designed by Shivani :)