Design patterns in AdonisJS

Design patterns in AdonisJS

26mins
2 lessons
Expert
Start course

Design patterns are general repeatable solutions to commonly occurring problems in software design. In this course, you are going to learn to implement different design patterns in AdonisJS.

Design patterns

10m 32s

The service class is a concept in which the application or business logic of an application is placed in dedicated classes. In this lesson, I’ll show you how to implement the service class pattern in Adonis.

What you'll learn

  • How to use service classes with static methods
  • How to use service classes with instance methods
  • How to automatically create instance of a service class using the inject decorator
  • How to create a singleton service class

The repository pattern can be defined as an abstraction over data storage, allowing the decoupling of data access logic from the business logic. In this lesson, you will learn how to implement the repository pattern in AdonisJS.

What you'll learn

  • How to implement the repository pattern in AdonisJS
  • AdonisJS IoC bindings

*Course still in development. Do check back often for updates.

Chimezie Enyinnaya

Hi, I'm Chimezie Enyinnaya, your teacher.

I’m a self-taught software developer based in Lagos, Nigeria, with over 8 years of experience. In the last couple of years, I've been doing more teaching because I enjoy sharing my knowledge so that others can benefit from it. Come along as I teach you all I know about AdonisJS, Node.js, and JavaScript at large!