# Week 12

## Introduction

![](/files/-LSF5Ju9VyvdjraICefO)

## 1. Create a Folder

![](/files/-LSF1Kvxc6NxS2tjloH8)

## 2. Use Terminal OR iTerm to Access the Folder

```
cd (change directory)
ls (list items)
```

![](/files/-LSF1EmX5ikaucNV9rde)

## 3. Install Node.js

![](/files/-LSF0MdeezNxpgr8SfIW)

#### Download

<https://nodejs.org/en/download/>

![](/files/-LSF0liVprTNLS3zWny_)

#### Install

![](/files/-LSF0vrC_BodNZoDQ6uf)

## 4. Check if it is installed well&#x20;

```
node -v
```

![](/files/-LSF2X2RHJg9jDiawDyt)

## 5. Install Socket.io

<https://socket.io/>

![](/files/-LSF5iWnolZsT_JUYjdI)

<https://github.com/socketio/socket.io>

```
npm install socket.io
```

![](/files/-LSF5rTz1DqbsGuHMtwC)

## Installation Finished&#x20;

* **node**
* **socket.io**

## 1. Server.js

{% file src="/files/-LSIkYvEuyHgWb3R57vq" %}
server.js
{% endfile %}

## 2. index.html

{% file src="/files/-LSIntAPqF5sWjx3phTD" %}
index.html
{% endfile %}

## Files are made

## Now Let's RUN IT!!

![](/files/-LSF8-jMVxBH0OQF2uYQ)

## 1. Go to Terminal

![](/files/-LSF885oE-t3vjUmZNJw)

```
node server.js
```

## 2. Check your Browser

![](/files/-LSF8aLjt159vNIt2qFe)

#### localhost:3000/index.html

## CTRL + C

It will kill the node server

![](/files/-LSF9yh51E0bYV9nTu7k)

## killall node&#x20;

It will kill node server

![](/files/-LSFA411skdmi89IE6xU)

## SERVER&#x20;

![](/files/-LSHptwzBx9_yeRTUDzt)

## 1. You need a Hosting Server

![](/files/-LSHp9Ld6YWYknroxFzu)

## 2. Access the server by SSH with terminal

```
ssh root@111.111.111.111 
```

## 3. Node can be installed at the Ubuntu(Any) server&#x20;

{% embed url="<https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-16-04>" %}

## 4. Install Necessary NPM's : **Node** Package Manager

* socket
* express
* passport
* etc

## 5. Once installed, you can browse the server&#x20;

![](/files/-LSHpFrkJqXUOpcSnBJR)

## 6. Upload Files

![](/files/-LSHpKS1c_kqRR94uPSS)

## 7. Go to the folder and RUN IT with Terminal

![](/files/-LSHpNh1YyxMI67XEn28)

![](/files/-LSHl9DArmIyTbXfGAhB)

## 8. Go to   111.111.111.111:8000/index.html&#x20;

#### **<http://YOUR\\_IP:8080/index.html>**

## **9. Ctrl + D to disconnect**&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://icl.doyoki.com/week-12.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
