Posts

Standard Way To Create Node JS Fresh Project

Image
As you know in programming world JavaScript is becoming quite famous programming language so in this blog we will discuss how we can create fresh project of NodeJS in standard way. NodeJS - Education Funda Requirements Any server should be installed either Apache or Nginx. NodeJS and NPM should be installed in the operating system.  Steps to Install Fresh Node JS Project: First open your terminal and go to your project directory then run following commands ~ npm init (after hitting this command it will ask some basic questions you can answer it as per your need.   ~ npm init ~ npm install express (it will install express server for your project) ~ npm install mongodb (optional - if you want to use mongo) ~ npm install mongoose (optional - if you want to use mongo) ~ npm install nodemon --save-dev (nodemon package is using for automatically refresh after any change and we're using save dev here because we want to install it for development purpose only) To do setup of licens...

Database Seeding in NodeJS with MongoDB

Image
Seeders in NodeJS Database seeding is a process in which we can put predefined data or dummy data in database as per need. such as the data of countries, cities, etc. is fixed data for everyone for these kind of data we can create database seeding files and we can put all the data into database with the help of 1 command only. Step 1 : We should have model firstly for which we want to create seeding so here is an example model Product. productModel.js Step 2 : As we want to run 'database seeders' separately in one command so have can create one file for seeders and in this file we also need to add database connection so that we can communicate with database because here app.js/index.js database connection doesn't work as we want to run this separately so example seeder.js file is: Seeders.js   Step 3 : Now we can run command node seeders.js to create seeding in database Thanks for reading this article I hope it will help you for creating seeders in node js with mongo datab...

Ubuntu Operation System Update Packages Manually With Commands

Image
Let's See How We Can Update Ubuntu Packages With Command Line Interface Step 1: Open a Terminal and Type below command to update the index packages list $ sudo apt update OR sudo apt-get update Step 2: This part isn't necessary to you, but if you had llike to see which packages are due for an update or check the list of packages which need to upgrade, so you can type this command $ sudo apt list --upgradable OR  apt list --upgradable Step 3: Now for update the packages we can use below command For individual package update: $ sudo apt install PACKAGE-NAME For update all the packages: $ sudo apt upgrade Step 4: Few packages are dependent upon third party sites or libraries as well so for update those you can run below command $ sudo apt dist-upgrade Step 5: As we are doing this process manually so finally we also need to remove previous versions of packages so we can do it via below command $ sudo apt autoremove I hope this blog will help you to upgrade your Ubuntu operating ...

Top 15 JavaScript Interview Questions

Image
Most Commonly Asked JavaScript Interview Questions JavaScript is the most popular scripting language and it was developed by Netscape and used to develop the client-side web applications. JS - Education Funda The real name of JavaScript was Mocha . JavaScript is provided by Netscape and JScript name is provided by Microsoft. Check The 15 JavaScript Interview Questions in Below Video: © Education Funda Some Important Features of JavaScript Are: Lightweight Easy to use with html Compatible with most of the programming languages Open source platform for everyone Thanks for reading this article ✌

Solve MongoDB.Service: Failed With Result 'Exit-Code'

Image
Solve MongoDB Failed Service Error This worked for me and I didn't reinstall MongoDB. I have created manually sudo mkdir /var/lib/mongodb sudo mkdir /var/log/mongodb   and changed owner permission for both sudo chown -R mongodb:mongodb /var/lib/mongodb sudo chown -R mongodb:mongodb /var/log/mongodb   pgrep mongod sudo service mongodb start sudo service mongodb status Please share your feedback in comment section. Thanks

Get Real IP Address Of Any Website

Image
Get Real IP Address of Google, Facebook, YouTube, Instagram and Twitter What is IP Address? An IP address is a unique address that identifies a device on the internet or a local network. IP stands for "Internet Protocol," which is the set of rules governing the format of data sent via the internet or local network. IP Address - Education Funda Tool You can use your laptop or desktop to get IP address any website, you just need to open the command prompt of your operating system either windows operating system or linux operating system. In windows operating system just type CMD in search box so easily command line interface will open where you can run the command which we shown in this video. Here is the video with explanation how to get real ip address of any domain: Content in Video: - Get Google IP Address - Get Facebook IP Address - Get YouTube IP Address - Get Instagram IP Address - Get Twitter IP Address Thanks for reading this blog, I hope it will help you to increase ...

Top GIT Interview Questions

Image
Git is an open source code management system (SCM) which can control the source code of small and large scale projects in a very efficient way along with speed. It uses C language to maintain high level languages easily. GIT - Education Funda Let's jump into "Top 10 GIT Interview Questions": Important Notes For You GIT Repository A repository consists of a list named .git, where git holds all of its metadata for the catalogue. The content of the .git file is private to Git. GIT Stash When we do some edits and this edit we don’t want to push in the master branch so we can use the ‘git stash’ command. It will store the edits in Stack and our production branch will not reflect with it. For getting these changes again we can create a new branch and use ‘git status pop’ for retrieving the ‘git stash’ edits. We can remove the last added stash via the ‘git stash drop’ command and if we want to use specific then we can also do it via passing arguments. For showing listings o...