Usually, e-commerce solutions come with an admin section, where you can manage your products and inventory. The admin section for our application is going to be built with Angular 2. Nothing fancy; we have already built a few apps with Angular, right?
We are not going to go through all the details but only the most important parts of the application. Don't worry! Full source code is available for the project.
We made a few architectural changes right from the beginning. Each of our micro apps will serve a specific purpose. The admin
micro app will host the administration application built using Angular 2.
In the preceding chapters, we used server-static to expose our public
folder's content. This app will have its own public
folder and will contain only the files related to our admin Angular application.
This micro app is going to be fairly simple. Create a file called apps/admin/index.js
with the following content:
'use strict'; const path = require('path...