# Searching for Tutorial for Developing Plugins

**URL:** <https://discourse.aurelia.io/t/searching-for-tutorial-for-developing-plugins/1131>\
**Category:** Help Requests\
**Created:** [April 24, 2018, 1:41pm UTC](https://discourse.aurelia.io/t/searching-for-tutorial-for-developing-plugins/1131 "2018-04-24T13:41:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SNO](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/sno/32/650_2.png) [@SNO](https://discourse.aurelia.io/u/SNO)\
**Post date:** [April 24, 2018, 1:41pm UTC](https://discourse.aurelia.io/t/searching-for-tutorial-for-developing-plugins/1131/1 "2018-04-24T13:41:11Z")

</div>

Hello,

I’m quite new working with aurelia and searching for a good tutorial for developing aurelia-plugins.  
Currently I have the aurelia-skeleton-plugin and want to create an own plugin that get use of the “aurelia-configuration” plugin.  
Trying to develop that plugin I have following questions:

- How can I get an configured instance of `AureliaConfiguration` within my plugin class?
- How can I configure my plugin within the index.ts? (Beside my index.ts I have my main class “RouteService” that includes all the business logic. This class needs to get the aurelia-Configuration-Instance)

Having a look into the AureliaConfiguration-Plugin I would setup my index.ts as follows:

```auto
import { FrameworkConfiguration } from 'aurelia-framework';
import { RouteService} from './RouteService';

export function configure(aurelia: FrameworkConfiguration, configCallback?: (config: AureliaConfiguration) => Promise<any>) {
    let instance = aurelia.container.get(RouteService) as RouteService;
    let promise: Promise<any> | null = null;

    // Do we have a callback function?
    if (configCallback !== undefined && typeof (configCallback) === 'function') {
        promise = Promise.resolve(configCallback(instance));
    } else {
        promise = Promise.resolve();
    }

    // Don't load the config until the configCallback has completed.
    return promise
        .then(function () {
            return instance.loadConfig();
        });
}

export { RouteService};

```

But how to pass the already configured AureliaConfiguration-Instance into my RouteService?

Is there a good tutorial?
