Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions firstEverNodeJsCode.js

This file was deleted.

4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
const printMsg = require("./msg");

let msg = printMsg();
console.log(msg);
5 changes: 5 additions & 0 deletions msg.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const printMsg = () => {
return "Your msg....";
};

module.exports = printMsg;
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "Complete Learning Nodejs ExpressJs & MongoDb",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node index.js"
},
"repository": {
"type": "git",
Expand Down
31 changes: 2 additions & 29 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,5 @@
# Download and Install Nodejs with Hello World

## Download

- You can download NodeJs from here [click here](https://nodejs.org/en/download/).

## Install

### Windows

- Watch this [Video](https://www.youtube.com/watch?v=qZQmCfkmbNA) for installation guide.

### Ubuntu

- Watch this [Video](https://www.youtube.com/watch?v=K6QiSKy2zoM) for installation guide.

### Mac

- Watch this [Video](https://www.youtube.com/watch?v=TQks1p7xjdI) for installation guide.

## Hello World

### Steps to create your first application

- Run this command `npm init -y`.
- Create file `firstEverNodeJsCode.js` in root of your folder.
- Add `console.log("This is my first ever Node JS code!!");` code to your file
- Run this command `node firstEverNodeJsCode.js` in root of your folder
# Module in Nodejs

## Output

![](https://i.imgur.com/heccfrR.png)
![](https://i.imgur.com/eQHXs22.png)