Posts

Showing posts with the label git

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...

Git Strategies for developers

Git is a version control system or VCS that is primarily employed for source code management and also for keeping track of changes made to a file or a set of files. It enables streamlining the individual processes of multiple developers working on the same project. What makes a Good Commit ? Rule1-  Keep your commits small Rule2-  Keep related changes only in a commit Rule3-  Write meaningful commit messages.  Try using Conventional Commit Messages -  Developers working on real projects in teams, should prefer using conventional commit message standard for consistency and tracking.  Share Git Stash with another Dev or machine Create a patch The following git command will create a patch file that contains all the differences represented by the set of changes in the stash. git stash show "stash@{0}" -p > changes.patch The “stash@{0}” is the ref of the stash. If you want a different one just use $ git stash list to see your list of stashes and select wh...