Posts

Showing posts with the label fullstack

Host Your Node.js App on AWS EC2 Instance for Free in 2024

Image
Contents Introduction Prerequisites Launch an EC2 Instance Prepare the EC2 Instance Connect to the EC2 Instance Install Dependencies and Start Your App in instance terminal Access Your App Run your server in auto mode using pm2 Conclusion 1. Introduction Are you a developer looking to host your Node.js app on a reliable and scalable platform? Amazon Web Services (AWS) offers a variety of services to meet your hosting needs, including EC2 instances. In this tutorial, we will guide you through the process of hosting your Node.js app on an AWS EC2 instance for free using the AWS Free Tier. 2. Prerequisites Before we begin, make sure you have the following prerequisites in place: An AWS account. If you don't have one, sign up for free at https://aws.amazon.com/. Basic knowledge of Node.js.  3. Launch an EC2 Instance 1.      Log in to the AWS Management Console. 2.      Navigate to the EC2 service. 3.      Click on "Launch Instance" to start the instance creation process . 4.

GitCommandsPro Your Guide to Essential Git Commands in 2024

Image
Table of Content 1 Check git version 2 Configuration Settings 3 Initializing a repository 4 Staging files 5 Viewing the status 6 Committing the staged files 7 Skipping the staging area 8. Removing files 9 Renaming or moving files 10 Viewing the staged/unstaged changes 11 Viewing the history 12 Viewing a commit 13 Unstaging files (undoing git add) 14 Discarding local changes 15 Restoring an earlier version of a file      1.     Check git version git --version 2.     Configuration Settings Levels of defining this settings are System level -  apply to All Users of computer. Global – all repositories of the current user. Local – the current repository. Or a repository in the current folder.           Name  git config --global user.name "YOUR_NAME"          Email git config --global user.email YOUR_MAIL@gmail.com          Default Editor (for setting vscode) git config --global core.editor "code --wait"           To edit all the global settings (will open the d