Coming from a PHP and Laravel background, I have a lot of expectations from the framework that I will be using for any project. By working for almost a decade in PHP and with Laravel for the last 4 to 5 years I got use to a lot of niceties available with this framework. And, I think apart from the framework, the huge collection of packages and amazing tooling available not only does this framework allow rapid development but also gives a lot of attention towards the developers.
From there, when I shifted to the Node eco-system, I felt a little out of place. I mean yes, there is a lot of cool things happening in this amazing world of Node. However, when I looked at some of the popular frameworks like Express or Koa I felt out of place.
I had questions like, where is the routes file? Where should I keep my controllers? And then, I started realizing that these frameworks provide just the bare minimum. And then, it is up to you to figure out things. Now, for those who want to explore the nice and cool things about the framework, to do a lot of glittery things about structure it’s fine. But those who want to pick a strong platform and get started with it, I find this a little annoying.
- How does CSRF tokens work?
- How can I sanitize the input coming from the user through a form?
- How validations will work and what kind of response and status code will be sent?
Now, in Laravel I don’t need to think of such things. Because, I know these are already sorted out. The framework has been used by a huge population of developers and so I don’t need to invent the wheel here. Some of things might sound very simple and one may say, oh it’s such a simple thing – I just need to read up on this and implement. But there is a lot more than what meets the eye. Specially in terms of security, performance and what not.
While I was trying to answer these questions and wondering out there on the internet, I stumbled upon Sails JS and Adonis JS. Now, I am not trying to compare these frameworks here. But, as a developer who loves to work with Laravel, I found Adonis to be a ray of light. Yes, it is not as big as may be Sails JS. In my next few blog posts, I will walk you through my experience with this while I try to build something using this framework from scratch.