Are you a big fan of Laravel framework and want same structure and features in NodeJS? If yes then now it’s very easy because AdonisJS is the NodeJS framework which follows Laravel structure.
AdonisJS is the well structured NodeJS’ MVC framework. In this post, I’ll describe what is AdonisJS and how to install it.
What is AdonisJS?
AdonisJS is following structure of PHP framework called Laravel. It supports almost every feature of Laravel. Only difference here is in Laravel you can build application in PHP but using AdonisJS you can build application in NodeJS!
AdonisJS is scalable and stable framework of NodeJS. Some key ascepts of AdonisJS are:
- Easy API structure
- The API structure is so much easy that after working for some time you can guess which method/controller is used for which functionality. Just like Laravel.
- Speed and Productivity
- Like Laravel, it comes with bunch of providers like Mailing, Authentication, Validation…
How to install?
As other frameworks/packages, installation is very easy. Just make sure you’ve node v >= 4 and npm v >= 3 installed in your system.
AdonisJS provides CLI to make use of it easier. So first install AdonisJS CLI using following command:
npm i -g adonis-cli
Now, we’ll start our first project in adonis first-adonisjs using below command:
adonis new first-adonis
This command will create new directory and setup project with pre-configured directory structure.
Now cd into that directory and start command using following commands:
cd first-adonis npm start
Now open http://localhost:3333/ to see the welcome page of Adonis.
Learn more of Adonis here! Thanks!