Posts

Showing posts with the label cli

Deploy a Next.js Application on Azure Web App ( Part 1)

Image
Today, we are going to deploy a very simple web application build using Next.JS framework on Microsoft Azure Web App. This blog is split into two parts - Part 1: covers local web app development and deployment to azure web app using local machine. Part 2: covers deployment using Gitlab CI Prerequisites Before starting, ensure you have the following prerequisites: Azure Account Subscription : If you don't have one, you can sign up for a free account here . Node.js and NPM : Make sure Node.js and NPM are installed on your local machine. Download them here . Git and Azure CLI : Install Git and the Azure CLI. Git can be found here and Azure CLI here . Docker : You’ll need Docker for building and running your Next.js app in a container. Get it here . (It is optional, we can build image directly on azure also) Table of Contents Setup Boilerplate Repo Build Docker Image (optional) Create an Azure Web App Deploy Web App using Azure CLI Step 1: Setup Repository To get started, yo...

Dotnet Core CLI useful commands

Image
  .NET Core command-line interface (CLI) is a cross-platform toolchain for developing, building, running, and publishing .NET Core applications. It comes handy when using Visual Studio Code (lightweight IDE for developers)  Basic Commands : new - create new item based on template. dotnet new [console|classlib|web|mvc|angular|react|webapi] build - build the solution or project dotnet build clean - clean the output directory of the  project. publish - publish the application and it dependencies to folder for deployment run - start the application or project sln - lists or modify solution file, for e.g. adding or deleting a project  dotnet sln add <project_files> dotnet sln remove <project_files>  test - dotnet test driver to execute unit tests help - to get more detailed information on any command