Skip to content

ahmadarif/adonis-service-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Service Generator

Create service using command

Installation

  • Clone this repo git clone https://github.com/ahmadarif/adonis-service-generator ServiceGenerator
  • Copy ServiceGenerator folder to YOUR_PROJECT/providers
  • Register in start/app.js
    const Helpers = use('Helpers')
    
    const aceProviders = [
      Helpers.appRoot('providers/ServiceGenerator/providers/ServiceGeneratorProvider')
    ]

Usage

  • Generate service

    adonis make:service auth
    

    This command will generate app/Services/AuthService.js

  • Usage in controller or other file

    const AuthService = use('App/Service/AuthService')
    await AuthService.someFunction()

About

Adonis local provider for generate services

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published