DEV Community

Cover image for Learn Laravel as a Nodejs Developer using AdonisJS
Osinachi Chukwujama
Osinachi Chukwujama

Posted on • Originally published at osi.codes

Learn Laravel as a Nodejs Developer using AdonisJS

If you have been willing to develop Laravel applications as a Nodejs developer and don't know PHP, you can take the Adonis.js path. Adonis.js is an opinionated Node.js MVC framework for developing full-stack applications and APIs. Learning Adonis will give the chance to learn some concepts like migrations and working with a CLI. The best part is that you still develop using JavaScript!

As you may know, Laravel is a PHP framework that offers a lot of goodies out of the box. At the core, Laravel and Adonis share the same philosophy.

Similarities between Laravel and Adonis

  1. They have a similar MVC structure.
  2. They come with an Object Relational Mapper (ORM). Laravel comes with Eloquent while Adonis comes with Lucid
  3. They handle session-based auth out of the box. Adonis goes two steps forward by handling JWT and personal token auth.

Differences

  1. Laravel is more opinionated than Adonis. In fact, Laravel 7 comes out of the box with Bootstrap as the default CSS library.
  2. Laravel is more mature than Adonis. Laravel has been around since 2011 while adonis has been in active development since 2017.

So how do I learn Adonis.js?

The official documentation is by far the best way to learn the bits and pieces of Adonis.js. But if you will like someone to hold your hand while you learn, you can check this awesome AdonisJS series (shameless plug) on building a real-world API using AdonisJS.

DesignCourse has a crash course on adonis.js
Adonis Mastery YouTube channel has a full series on Adonis.

So after learning Adonis, how do I learn Laravel?

After learning Adonis, you will have a good overview of the core concepts behind Laravel and might not need a tutorial. If you do need a tutorial, you will find tons of amazing tutorials on laracasts.io.

Benefits of developing with Laravel

  1. Out of the box configuration for authentication, Redis, 2FA, Mail and much more.
  2. Ability to build Single Page Apps (SPAs) without a different server setup. Think of it as a modern monolith approach. This is achieved either through Livewire or Inertia.
  3. Automatic frontend asset compilation with Mix.
  4. Vibrant community so you never get lost.

Check out both frameworks, learn the pros of each and save yourself set up hassle. Do leave a star on the Laravel github page and also one for Adonis. Thanks for reading. Adios ✌🏾🧑.

Top comments (0)