These are chat archives for quorrajs/quorrajs

26th
Jun 2016
maq
@maqboolkhan
Jun 26 2016 10:33
thanks @harishanchu :smile:
maq
@maqboolkhan
Jun 26 2016 10:49
@harishanchu is there any proper guide available to extend quorrajs?
i mean if i want to write a extension for quorra where should i start?
should i write a serve provider?
Harish
@harishanchu
Jun 26 2016 13:28

@maqboolkhan Currently you can extend Quorra in two ways

Service providers

With service providers you can add more services to Quorra framework during boot process which your application can consume later. Here is the documentation on how to write a custom service provider and plugin it to the application: https://quorrajs.org/docs/v1/more/service-providers.html

Take a look at some of Quorra's in built service providers:

Middlewares

With middlewares you can intercept your application's request life cycle like normal express.js middlewares. Here is the documentation for Middlewares: https://quorrajs.org/docs/v1/getting-started/middleware.html

Take a look at some of Quorra's in built middlewares:

Note:
In future I will be adding provision to define routes, middlewares, configuration etc as part of an external module and plug it in to the Quorra with the help of service provider defined in the external module.