An Interest In:
Web News this Week
- March 20, 2024
- March 19, 2024
- March 18, 2024
- March 17, 2024
- March 16, 2024
- March 15, 2024
- March 14, 2024
I am creating a new JavaScript Framework
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 doingreq.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 :)
Original Link: https://dev.to/ohayouarmaan/i-am-creating-a-new-javascript-framework-46af
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To