Open in app

Sign In

Write

Sign In

Safaetul Ahasan
Safaetul Ahasan

126 Followers

Home

About

Jul 27

Dockerize NodeJs Application

To dockerize a Node.js application, we need to follow these steps: Create a Node.js application Create a Dockerfile Building your Docker Image Run a Container Step 1: Creating a Node.js Application mkdir docker_node cd docker_node npm init npm install express --save Step 2: Create A DockerFile Create a file named Dockerfile in the same folder as the file package.json with the…

Docker

4 min read

Dockerize NodeJs
Dockerize NodeJs
Docker

4 min read


Jun 27

Install Docker using script (Devops)

Now Install the Docker with the following script: docker_install.sh #!/bin/bash # Update package list sudo apt-get update # Install necessary packages to use HTTPS repositories sudo apt-get install apt-transport-https ca-certificates curl software-properties-common -y # Add Docker GPG key curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg # Add Docker repository to sources list echo "deb [arch=$(dpkg --print-architecture)…

Docker

1 min read

Install Docker using script (Devops)
Install Docker using script (Devops)
Docker

1 min read


Jun 23

How to deploy NextJs Project in Server.

Edit package.json "scripts": { "dev": "node server.js", "prod": "node server.js", "build": "next build && next export", "start": "NODE_ENV=production pm2 start server.js --watch", "export": "npm run build && next export" }, 2. Create server.js “npm install express” const express = require('express'); const next = require('next'); const port = 3661; const dev…

Nextjs

2 min read

How to deploy NextJs Project in Server.
How to deploy NextJs Project in Server.
Nextjs

2 min read


May 29

Build Unix command line tools ls,cat,touch,find,vi and mkdir using php

ls — To build a simple version of the ls command line tool using PHP, we can use the built-in scandir() function to list the files and directories in a given directory. Here's an example implementation: <?php function ls($directory = '.') { $files = scandir($directory)…

PHP

4 min read

PHP

4 min read


May 10

Some important skills that will help you advance your frontend web development career.

Here are some important skills that will help you advance your front end web development career. 1. Scss: You may have designed with html and css. While designing with css, the same code needs to be written many times. Moreover, if there is any change in the same design, it needs…

Web Development

3 min read

Web Development

3 min read


May 4

Software design principles

Software design principles are a set of guidelines that helps developers to make a good system design. The most important principle is SOLID principle. The key software design principles are as: SOILD It is combination of five basic designing principles. Single Responsibility Principle (SRP): This principle states that there should…

Solid Principles

3 min read

Solid Principles

3 min read


Apr 27

API স্ট্যাটাস কোড এবং কিছু বিভাগ

স্ট্যাটাস এবং error কোডগুলি রেসপন্স শিরোনামের একটি কোড নম্বরকে নির্দেশ করে যা রেসপন্স এর সাধারণ শ্রেণিবিন্যাস নির্দেশ করে। স্ট্যাটাস কোড কি? যদি ডেটার জন্য একটি ভ্যালিড রিকুয়েস্ট আসে, তবে একজন ডেভেলপার ডেটা ফেরত দেবেন। ভ্যালিড ডেটা সহ API এ একটি অবজেক্ট তৈরি করলে, একজন ডেভেলপার তৈরি করা অবজেক্ট টি ফেরত…

API

2 min read

API

2 min read


Published in

Dev Genius

·Mar 31

Git Branching — Rebasing

Git rebasing is a way to integrate changes from one branch into another by moving the commits to the tip of the other branch. This can be useful if you want to keep your branch history linear and avoid unnecessary merge commits. Scenario: Here is an example scenario where you might…

Git

2 min read

Git Branching — Rebasing
Git Branching — Rebasing
Git

2 min read


Mar 31

Git tags

Git tag are used to label and mark a specific commit in the history. In a Details, Git tags are labels that you can apply to a specific commit in your Git repository. …

Git

3 min read

Git tags
Git tags
Git

3 min read


Published in

DevOps.dev

·Mar 31

Git Cherry-pick

Cherry picking means to choose a commit from one branch and apply it onto another branch. Here is an example of how to cherry-pick a commit: Make sure you are on the branch where you wants to add a new commit.(where you wants to add a new commit) git switch…

Git

2 min read

Git Cherry-pick
Git Cherry-pick
Git

2 min read

Safaetul Ahasan

Safaetul Ahasan

126 Followers

Senior Software Engineer

Following
  • ismail

    ismail

  • Krunal Rana

    Krunal Rana

  • ArjunAmrutiya

    ArjunAmrutiya

  • Fikri Hanif

    Fikri Hanif

  • Aniruddha Adhikary (Ani)

    Aniruddha Adhikary (Ani)

See all (496)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams