Posts

Showing posts from March, 2020

How to host a React app on Azure

Image
Creating React apps has never been easier with the advent of tools like  create-react-app  or  next  but deploying them is both easy and hard at the same time. The CLI tool can build your React app that can be served as a simple static site since it consists only of a single html file, a single js file and a bunch of static images and style sheets. Building a website Our first step is ensuring we have  create-react-app  installed on our system. To do that, run the following command: npm i -g create-react-app To create a new project, simply invoke the tool with a project name: create-react-app AzureTest This will create a new folder named  AzureTest  that will contain all the files used for developing and building your website. Let’s build the project using the following command: npm run build After it is finished, a new folder named  build  is created which contains everything you need to run the website in production. ...

Deploying Node.js Apps to AWS EC2 with Docker

Image
In this blog, we're going to create a basic Node.js app with Docker, start and configure an EC2 instance, and deploy our app to it. At the end of this blog you'll have your Node app running on AWS, and a better understanding of how to interact with a core AWS service. Prerequisites AWS Account Amazon Web Services  (AWS) is a collection of tools for building applications in the cloud. As EC2 is an AWS service, we'll need to set up an AWS account. AWS has a free tier for a lot of awesome stuff, and EC2 is no exception - you're free to use 750 hours (31 days) of EC2 a month in the free tier for a whole year. Docker Docker  allows us to bundle up our applications into small, easily deployable units that can be run  anywhere  where Docker is installed. This means no more of that 'but it works on my machine!' Node Application Let's make a really simple Node application that responds to a request. To do this, we'll open up a terminal and run: ...

Setup A CI/CD Pipeline For Deploying Your Angular Application To Azure And Bitbucket

Image
This article isabout Angular application's  auto deployment for CI/CD pipelines using Azure app service, azure DevOps, and Bitbucket repository. Please follow the below steps. Create Azure App Service If you are using Azure for the first time and want to explore the same, please check if the  free subscription  is available. If you have not created a resource group and Azure web service, please create one. Then make sure you select ‘.NET Core 3.0’ in the ‘Runtime Stack’ option and web service name (here I have used “angular-auto-deployment”). Once you have filled in the details, click on the “Review and create” button. On the next screen click the “Create” button to see the newly created resource. Click your resource file. The recently created web app service is now available on your list. Please refer to the below image for your reference. Auto Deployment Setup in Azure DevOps Azure DevOps is used to deploy an application to the c...

Developing your first Angular 9 app from scratch.

Image
We'll learn about concepts like Angular modules, components and directives. We'll also learn about Angular template syntax which includes interpolation, event binding and property binding, etc. For the example that we'll be building, it's a simple calculator application that implements the basic calculus operations. You'll learn from this tutorial: How to install the latest version of Angular 9 CLI, How to initialize a new Angular 9 project, Understand and work with modules and components, Understand Angular template syntax, particularly event and property bindings, Listen for click events and update the UI when data changes. Angular 9 Tutorial Steps These are the steps: Step 1 - Installing Angular CLI 9 Step 2 - Initializing our Project Step 3 - Understanding Angular Modules & Components Step 4 - Adding our HTML Template and Styles Step 5 - Understanding Angular Template Syntax Step 6 - Listenning for Click Events on the Buttons and Ge...