Some organizations start their Digital Transformation considering the possibilities that technologies like artificial intelligence or cloud services could bring. However, Digital Transformation is not about the use of innovative technologies, technologies are only enablers. Digital Transformation should transform the customer experience and create new business models that must bring added value and must have concrete objectives.
📢 Technologies are only enablers. The #digitaltransformation should transform the customer experience and create new business models that must bring added value and must have concrete objectives.
Other organizations use digital products or computers to automate processes. Although it can help to reduce costs, that is only Digitization. Organizations must have a clearly defined digital identity, digital culture, and digital strategy. The result of a Digital Transformation should be new business models and a customer experience fundamentally different from the traditional ones. In many cases, to achieve this the traditional business processes and the company structure needs to be transformed too.
It is also very important to be aware that Digital Transformation creates a market environment that is volatile, uncertain, and complex. This creates big opportunities for organizations that are agile and can adapt to the new environment better than others.
Lean Portfolio Management aligns the organization’s strategy with execution in a lean and agile way. This is crucial to survive in the environment created by Digital Transformation.
In the digital era, it is crucial to quickly adapt and respond to competitive threats and efficiently validate and deliver customer value. Completing my Lean Portfolio Management certification helped me to learn new tools and methods for successfully managing Digital Portfolios.
I had no time to write something for a while, the goal of this post is to summarize what did last years beside my job.
1. Master’s degree: Data Analytics and Business Intelligence
I decided to come back to the university to study Data Science I completed the following studies:
Master’s degree Business Intelligence2018 – 2019 (Universitat Oberta de Catalunya – Spain) – Gather and analyze information relevant to a company’s environment. – Business oriented data analytics. (Customer and operations analytics) – Use of procedures, skills, applications, tools and practices to support decision-making.
Post degree Data Analytics and Big Data 2016 – 2018 (Universitat Oberta de Catalunya – Spain) – Data mining, data analytics and visual analytics. – Data management, data governance and Big Data. – Machine learning and artificial intelligence.
During that time I was involved in a couple of personal projects beside my job in OMICRON Electroncis.
2. Data Analyst hobbyist
I supported the eSport club x6tence doing data analysis for Clash Royale. To do this a webpage and a database SQLServer in Azure was used to do the data acquisition and PowerBI to do the Data Analysis.
This project was excelent to apply a lot of things that I was learning during my studies, special mention to PowerBI.
3. Software Development: Doctor Decks
Doctor Decks was a project in which I work together with a work colleague. The goal of the software was to find good combinations of cards for the game Clash Royale. The product was available in a web and also had phone apps: Windows universal, iOS and Android. A cloud app in Microsoft Azure was collecting the data from differents apis.
This was an excelent project to learn a lot about data analysis and improve my knowledge about Azure Cloud, web development with Angular and apps development with Xamarin.
The web had thousands of visits everyday and the app more than 1M downloads! After more than two years of success we decided to finish the project due to the maintenance effort.
With policies we don’t need to hard code anymore Roles or Names in our Authorize attribute. A policy is an authorization logic that contains one of more requirements.
How to use a policy?
The concept is very simple, once we have a defined policy we can add it to our Authorize attributes…
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
We have to define our policies in our Startup class, in ConfigureServices. We need a policy name, a list of valid authentication schemes and a list of requirements.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To write our requirement we use the base class AuthorizationHandler and implement the interface IAuthorizationRequirement.
This requirement checks that the user is authenticated and has the claim “MonsterTypeClaim” = “Good”
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The goal of this post is to set up a Visual Studio 2015 project with ASP NET Core 1 and Angular 2Typescript that can be used as a template for all my projects.
We will use npm (Node Package Manager) to add our dependencies and we will configure the typescript transpiler integrated in Visual Studio. We will also configure a gulp task to bundle our javascript an css dependencies.
Content
Introduction
Install Pre-requisites
Create an empty ASP Core 1 project
Auto transpile Typescript after save
Add Angular 2 with npm
Set up gulp task to bundle dependencies
Introduction
The former ASP.NET 5 was renamed to .NET Core 1. It is a modular Microsoft runtime library implementation that includes a subset of the .NET Framework.
.NET Core 1 was written from scratch. It has a lot of advantages, for example it is lighter, open-source and multi-platform: Mac, Linux and Windows.
Although the version 1 is in Release Candidate there are some ASP.NET 4.6 features missing, like SignalR.
It is up to you to choose a mature Framework like ASP.NET 4.6 or a modern one like ASP.NET Core 1… you can read more about it in this post by Scott Hanselman. I copied the following diagram from that post :-).
Install Pre-requisites
There are some problems in Windows using npm version 2. It nest dependencies and ends up having too long paths for Windows. Let’s start updating npm to version 3 and configuring Visual Studio to use it.
The first thing that we should do is to install Python version 2.7.X and NodeJS version 4.2.X. Remember the path where you install NodeJS, we will need it later.
Open visual studio and add the path where NodeJS is installed as the first path to look for external tools (at the top). The next time that Visual Studio has to restore a node package it will start looking for nodejs.exe in that path. The version we just installed will be found and used.
Create an empty ASP NET Core 1 project
Let’s create our project and configure a very simple server-side code.
In Visual Studio 2015 Update 1 ASP NET Core 1 is still called ASP NET 5. Create a new project and select the WebAPI template. Our project will have a SPA that will call a WebAPI controller to get a message.
Delete the Project_Readme.html and update the values controller with this simple WebAPI controller that returns a hello message and the server UTC Time:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
We will call this method later from angular to check that the communication between our SPA and the server works. For now we can call it from the browser to check it. Run the application and write something like this in your browser using your configured port:
The file Startup.cs contains the configuration of the middleware. We will see in a future post how it works and how to configure it to use features like authentication. The default configuration when you select a WebAPI project template is ok for us.
Auto transpile Typescript after save
We can tell Visual Studio to auto transpile always that we edit and save a typescript file enabling:
“Automatically compile TypeScript files which are not part of a project”
Our files will be part of the project… but this is an easy way to make Visual Studio auto transpile. Running typescript compiler in watch mode is an alternative… but I like this solution because I have everything integrated in Visual Studio.
If you know a better way please leave me a comment. 🙂
We will have a tsconfig.json file on the project root of our project to configure typescript, Visual Studio will use that file and not the settings that we configure in Options:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The application that we will use as an example will be a simple application that call the server to get a message and will display using Angular 2.
Let’s add Angular 2 and other dependencies to npm, we need a file called “package.json” on the root of our project:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Save the file and Visual Studio will create node_modules folder and download all dependencies for you.
It is out of the scope of this post to explain how Angular 2 works you can read more about it here. But basically we define a component that we can use in our index.
<hello></hello>
This component is a html view that has bindings to its code behind or “view-model”.
hello.view.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The hello.component uses the service hello.service that makes REST calls to the server and returns Observable<T>.
hello.service.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
We need to “start” / “bootstrap” our application. We will use System.JS to do that. This is this index.html where we “start” our Angular 2 app:
index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Our index.html only references a style.css and a deps.js file. Those files are a bundle with all our dependencies. To create that bundle we will use gulp. We need this gulpfile.js on the root of our project:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
We want to create our bundles automatically when we rebuild or clean the project (not in every build).
Open Task Runner Explorer and bind the clean and bundle tasks to the “Clean” Visual Studio event:
This will trigger our tasks always that we clean or rebuild our solution. You can also add the bundle task to the “Before Build” event… but it can takes 8-10 seconds and normally the dependencies are not changing in every build.
We have a pre-configured project that hopefully will save us some time in the future!
If you know how to make it better please leave me a comment!