How to git clone nodejs in android – nodejs live chat repository

kickwe nodejs tutorial to clone git repository

Our previous tutorial was about

Installing and running nodejs in android

which shows initial setup of environment required for this tutorial. And this one is to git clone nodejs in android.

If you yet not covered that, highly recommended to go through that .

We have already uploaded a live chat application made by node.js in our official GitHub account.

DEMO
DOWNLOAD

We will clone that and setup and run in our device and test how the chat works ūüôā Dont forget to install the kick keyboard before you start this tutorial, we will need that . LET’S DO IT !

This tutorial is about git clone nodejs in android

Tutorial begins :

Open termux , and write in terminal using kick keyboard :

apt update && apt upgrade

press enter , this will update all updatable libraries in your device.

Now write :

apt install git

It will install GitHub environment to execute their commands .

Then write :

git clone https://github.com/kickwe/kickwe-nodejs-chat.git

This should copy the full repository in your device .

Afterwards, write :

dir

To see where you are and what files and folders you already got in your root directory of terminal.

write:

cd kickwe-nodejs-chat

then, write :

npm install

give it some time to install all required dependencies.

and finally write :

node app.js

this should show you : ” Listening port 8000″

Done !!!

open your browser and write in url:

http://localhost/8000

Bingo , the chat application is there and you have learnt how to git clone nodejs in android.

Once again ,here is all the commands used in this tutorial :

apt update && apt upgrade

apt install git

dir

clone https://github.com/kickwe/kickwe-nodejs-chat.git

cd kickwe-nodejs-chat

npm install

node app.js

Extras :

Before we explain what’s going on, you need to understand the project structure.

We got total 5 files in this project .

the file tree is :

-kickwe-nodejs-chat(folder)
–app.js (which is main Js file to run this application)

–package.json(a JSON file where all required dependencies needed to run this project. we have used socket.io for live chat )

–public(folder)
—index.html ( the user interface of this application with input fields and required JS source)

—local.js (contains user interaction functions)

—style.css (style sheet of this application)

At our next tutorial , we will explain all the usage of functions used in this project and make a tutorial about

Post A Reply