Amitav Roy

Blog on web and travel

Adonis JS - In search of a good Node framework

Posted on 23rd October, 2020 by Amitav Roy

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.

In the world of JavaScript, there is always an alternative to everything. This is both good and bad in a way. Good, because we can do a lot of architectural things based on requirements. However, it also means those who are not completely aware can go really wrong.

  • 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.

Comments

Camilo Caquimbo liked on 14th November 2020
Geet Purwar liked on 12th November 2020
Aman Virk liked on 11th November 2020
priyanka yadav liked on 11th November 2020
Miten Patel liked on 11th November 2020
Nikolas Burk liked on 11th November 2020
Amitav Roy replied on 11th November 2020
Yes, I am sure that is going to happen soon. The framework is very promising and I see a lot of merits on using this as your weapon of choice when doing any project on <a href="https://twitter.com/search?q=%23Node">#Node</a>. :) <a class="u-mention" href="https://twitter.com/TanzimIbthesam"></a>
The Developer Bot on 11th November 2020
Friday on 11th November 2020
javascript bot on 11th November 2020
Redian Marku on 11th November 2020
Underline API on 11th November 2020
React Developer on 11th November 2020
The Developer Bot liked on 11th November 2020
Dhanushka madushan liked on 11th November 2020
Manish Manghwani liked on 11th November 2020
Tanzim Ibthesam liked on 11th November 2020
Ayush Likhar liked on 11th November 2020
Zen' O Cosi Sama liked on 11th November 2020
Zen' O Cosi Sama replied on 11th November 2020
<a href="https://twitter.com/search?q=%23CosiSama237_note">#CosiSama237_note</a> <a class="u-mention" href="https://twitter.com/_reactdev"></a> <a class="u-mention" href="https://twitter.com/amitavroy7"></a> <a class="u-mention" href="https://www.amitavroy.com/"></a>
Tanzim Ibthesam replied on 11th November 2020
Wish in next year there will be some jobs for Adonis <a class="u-mention" href="https://twitter.com/amitavroy7"></a> <a class="u-mention" href="https://www.amitavroy.com/"></a>
Rajeev 🔥 liked on 25th October 2020
Cleavr liked on 24th October 2020
Ayush Likhar liked on 24th October 2020
Arandi López liked on 24th October 2020
Fahad Khan 💻 liked on 24th October 2020
Manish Manghwani on 24th October 2020
Robert Askam on 24th October 2020
LaravelCph on 24th October 2020
AdonisJS on 24th October 2020
PHP Synopsis on 24th October 2020
Gnuts about Code on 24th October 2020
Aman Virk on 24th October 2020
ArielMejiaDev on 24th October 2020
ダビッド トレス on 24th October 2020
Raj S on 24th October 2020
Yosvel Quintero on 24th October 2020
ArielMejiaDev liked on 24th October 2020
Voltra liked on 24th October 2020
Douglas D.C. liked on 24th October 2020
Rakesh liked on 24th October 2020
Haneef Ansari 🍭 liked on 24th October 2020
MadLipz Kenya😅 liked on 24th October 2020
Tobias Barsnes ⚡️ liked on 24th October 2020
Aman Virk liked on 24th October 2020