Building Single Page App Using ASP.NET Core with Entity Framework Core and AngularJS

Hi Friends,

In this particular post, I thought to unveil my book on latest Microsoft ASP.NET Core stack in conjunction with Angular. This is basically hand-book for all those people who like to build Single Page App, right from the scratch meeting all the industry standards.

Book_Cover

Continue reading “Building Single Page App Using ASP.NET Core with Entity Framework Core and AngularJS” »

6,194 total views, 1 views today

Getting Live Data from Twitter and Storing in Azure Blob Storage

Hi Friends,

In this section, I am going to talk about Logic Apps available in Azure. Here, I’ll be pulling Live data from twitter and dumping the same in Azure Blob Storage. You can do tons of things with these data, means you can get these data and apply Machine Learning on the same and many more things. You can also setup a simple .NET app where you can project the twitter data analysis region wise. By, the way this is not the app talk. This is just to showcase how to setup Logic Apps upfront in Azure.

As you can see in the below screen-shot, I am in azure portal. This is Preview portal. Here, you can see that I already have different resource groups.

1st

2nd

Continue reading “Getting Live Data from Twitter and Storing in Azure Blob Storage” »

1,354 total views, no views today

WEB API Management -1st Part

Hi Friends,

In this section, we’ll talk about WEB API Management. Now, from the high level, it’s look very much like Managing WEB API. Here, we need to talk about two things.

1) You build a Web API and decide to do business with that means you want to sell that API, already bunch of people doing the same. Like you want to sell services like messaging service, phone call service may be anything. So, you will monetize that.

2) Scenario 2nd is you will be indirectly monetizing the APIs means you will be doing business indirectly. Fine example for the same is; you partner with some business and they get access to your service. Basically, it will help other companies for the integrated experience.

So, once you decided that you are going to experience one of these scenarios. Then, WEB API Management is best for you. Out of the box, it also helps to keep documentation side by side. Consider a scenario if you have given tons of API without documentation; this will be worst scenario to handle. So, from a developer perspective if you are writing any API and you want to put the documentation then and there. Then, WEB API management is again a good choice.

One more scenario which I would like to emphasis here, let’s suppose you want to launch marketing Campaign and you don’t have analytics embedded with API; then you can’t even think of doing that. However, with Website you can do the same exclusively by incorporating google analytics and other stuffs. But, if you are writing any API from scratch then you need to think of key management, access, analytics in the backend and other important things. But, with turnkey service API Management all these things will go away. So, I can have any WEB API hosted anywhere on any service provider; but Azure WEB API Management will sit in front of that. So, as you see below in the screen shot, developers develop/write APIs that calls their APIs via Azure proxy. And this is where all magic happens, like analytics and other much needed behavior for WEB API done here.

2nd

Now, from Azure portal you can create WEB API management as shown below in the screen shot.

3rd

4th

6th

7th

8th

Once, the API management, portal created, you can go ahead and click on Manage link. This will open new dashboard for API Management as shown below in the screen shot.

9th

Now, here you can do all sort of things like adding new API or importing an existing API and set bunch of rules here on the same and then monitor the same on timely basis.

32nd

Then, you can add operations to it like shown below with documentation to that.

12th

13th

Once, it got added successfully, then you it will bring you back to the orignal screen as shown below with API added.

14th

Next thing i need to do is to add the same in the products. Now, this is the place where you can change the behavior or apply policies. Here, you will add your APIs to the product. Below is the screen shots for the same.

15th

16th

17th

18th

19th

20th

Now, once i added the API to the products page. I need to publish the same as well.

22nd

Once done, then i will click on developer portal link; then this will open developer’s dashboard for the same. So, as i said there are two things publisher and Developers. We have published our API 1st and now its available for developer’s portal.

23rd

Now, when you click on APIs link, it will list your newly added API.

24th

Now, below you can see variety of options to call the API means from different backend. One point to note here; in order to make a request you need to have a valid subscription id else this will result 401 error message as shown below

26th

However, you can achieve the same from the azure window itself.27th

28th

Now, this is the actual api http://moviereview.rahulsahay.com/api/movies which is getting fetched via Azure WEB API proxy.

30th

Once this is done. you can now check it’s analytics in the API Management window as shown in the below screen shot.

31th

with this i would like to wrap this session here. We’ll delve more in the coming session on the same. Till then stay tuned and Happy Coding.

Thanks,
Rahul Sahay
Happy Coding

3,991 total views, no views today

Building Azure Mobile Service App – 1st Part

Hi Friends,

In this segment we’ll talk about creating mobile service in the cloud and then using the same in our App. During the course we’ll use bunch of different kinds of technologies. We’ll talk about these technologies individually once we progress along the path. So, without wasting time 1st let’s go ahead and create Mobile service in Azure. As you can see I’m in the Azure portal

8th

where in currently i am not having any mobile service created. I’ll go ahead and create this link as shown below and create new mobile service.

9th

10th

11th

12th

Now, let’s go ahead and explore the service. So, here a framework has been installed on the IIS server hosted on windows azure which connects to the backend server. This provided REST based endpoints which means by using this REST endpoint we can perform some operation. As you can see below in the screen shot, our service is created and with manage keys option i can go ahead and off-course and associate key with this service.

13th

14th

Now, let’s have a look at the dashboard for the service. This is essentially a very usual dashboard we have used earlier with Azure.

15th

we’ll be exploring more this dashboard later. But, for now let’s look at the DB section which is also created with this service.

16th

17th

Now, let’s look at the dashboard of the db server. Here, you can get all the performance related parameters and also connection string for connecting to the database.

18th

Now, let’s open SQL Server management studio and connect to the database what we created in Azure. However, while connecting to the azure portal via SSMS; firewall may obstruct connection to happen as shown below.

21th

In order to fix the same, you can go back to the azure portal click on manage server and include your IP in the trusted IP List.

22nd

Once that is done, you can go ahead and login via SSMS as shown below

20th

As you can see below in the screen shot, currently no table is created here.

23rd

you can also login online SSL management portal.

24th

25th

Now, let’s go to mobile service dashboard and click on windows project as shown below and then download the starter app.

26th

With this i would like to wrap this session. In the next session, we’ll explore the app which we have downloaded from Azure and will do some really cool stuff with that. Till then stay tuned and Happy Coding.

Thanks,
Rahul Sahay
Happy Coding

1,557 total views, no views today

Publishing your ASP.NET App to Linux in 5 minutes with Docker


Hi Friends,

In this section, i will demonstrate how to publish your ASP.NET APP on Linux VM using Docker extension of Visual Studio 2015. So, before we begin, we must need VS 2015 RC candidate installed on our machine. Then, we do need Docker extension for visual studio installed on our machine. You can install the same from Extension and Updates as shown below in the screen shot.

1st

Then, I need to create new ASP.NET 5 website as shown below in the screen shot.

1st

2nd

3rd

Once, site got created successfully; then simply rt-click on the website and say Publish as shown below.

2nd

Then, It will provide the below options.

3rd

Now, if you don’t have any subscription, then you need to create one and provide the details in the next screen. For privacy reason, my details are hidden.

4th

5th

Then, it will give the below confirmation message.

6th

When you say ok here, it will build the app and prepare for hosting. You can check the status of the same in the output window when Azure is provisioning things for you. This process will take some time.

7th

Once, its completed. It will show the confirmation message as shown below.

8th

Now, I will come to and say publish, this time it will come in connections tab with below VM credentials.

9th

Then you can click on validate Connection for confirming every thing is correct. once verified, then you can go ahead and click next and publish the app.

10th

11th

while building the app, you can check the status in the output window.

12th

13th

14th

Once done. It will launch the same in the browser. Also, it launched in my new Project Spartan browser as i’m running on windows 10 machine.

15th

Thanks for Joining me.

Rahul Sahay
Happy Coding

4,368 total views, 2 views today