Posts

Showing posts from March, 2018

Creating a simple api mock service in Aurelia-cli

Introduction In the last weeks I faced the challenge, that our central development API had several bugs so that I was not able to request it. So I created a simple mock-service in aurelia-cli. Besides the fact that the mock-service enabled me to work on, this setup has the big advantage, that the development environment is now completely independent. Following a rough guide, how I created the mock service. How To Add aurelia-configuration plugin to project First, I added the aurelia-configuration plugin to my project. Besides the advantage that this component enables me to have all configurations in one central place, I am now able to have stage dependent configurations and I don't need to care about staging anymore. Install aurelia-configuration by running "npm install aurelia-configuration --save" Configure plugin in main.ts .plugin('aurelia-configuration', config => { config.setEnvironments({ development: ['lo