I am creating a new ✨JavaScript✨ Framework
Armaan Gupta
Posted on December 27, 2022
Okay so here's the plan. I will try to create a new javascript backend framework (most probably not because I'm just trying to rewrite pre-existing backend frameworks). My plan for now is to Understand how all of this works. So My first step is to re-create what others have already made, And then I'll move on to making and architecture of the "new" framework.
Introducing Ramen 🍜
yet another open source backend rest API framework! For now all this is, is a cheap copy of Express
You can find the repository for ramen here Currently as of when I'm writing this post, Ramen has the functionality to
- Detect query parameters
- Route parameters
- Get all the headers
- Send / write a response object
and it follows the route-by-route kind of routing, Where if a user goes to let's say 'http://ip:port/something/id' it will try to match this with different kind of functions provided to the server. And whichever function comes first (i.e. whichever function was appended first) will be used to process that request. It is also capable of finding query parameters, for example if you go to the URL 'http://ip:addr?foo=bar' you can access the value of foo by the Request object provided to you by Ramen simply by doing
req.queryParams
I'll try to log all the developments I make in Ramen here only. And somehow this will keep me motivated to keep this project alive all the time :)
Posted on December 27, 2022
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.