AdonisJS Prerequisites & Creating A New Project — Let’s Learn Adonis 5, Lesson 1.0

Tom Gobich | Adocasts.com
5 min readOct 28, 2021

View all lessons in the Let’s Learn Adonis 5 series here.

AdonisJS is, as they state, a fully-featured web framework for NodeJS. It’s going to allow us to create either a Model View Controller (MVC) or an Application Programming Interface (API) server application.

MVC applications are where we have our business logic and our font-end wrapped up all in one monolithic project. An API server would be where you’d use separate projects for your front-end and back-end; Adonis being your back-end, handling your application’s business logic.

Whichever project structure you utilize Adonis for, Adonis comes loaded with all the features you’ll need to easily build and scale your application. It has its own routing system, controller and service support, file upload support, it has its own object-relational mapper (ORM), validator, command-line interface (CLI), template engine, and more. It also supports both email + password and social authentication as well as authorization.

Its ORM, called Lucid, has a really nice query builder that’s easily customizable, which is built off KnexJS. It also works extremely well with SQL-based relational

--

--

Tom Gobich | Adocasts.com

Learn AdonisJS, NodeJS, JavaScript and more through in-depth lessons, screencasts, and livestreams at adocasts.com