ICL
  • Intro to Computational Language
  • Academic Policy
  • Week 01
  • Week 02
  • Week 03
  • Week 04
  • Week 05
  • Week 06
  • Week 07
  • Week 08
  • Week 09
  • Week 10
  • Week 11
  • Week 12
  • Week 13
  • Week 14
  • Week 15
  • Portfolio
Powered by GitBook
On this page
  • Introduction
  • 1. Create a Folder
  • 2. Use Terminal OR iTerm to Access the Folder
  • 3. Install Node.js
  • 4. Check if it is installed well
  • 5. Install Socket.io
  • Installation Finished
  • 1. Server.js
  • 2. index.html
  • Files are made
  • Now Let's RUN IT!!
  • 1. Go to Terminal
  • 2. Check your Browser
  • CTRL + C
  • killall node
  • SERVER
  • 1. You need a Hosting Server
  • 2. Access the server by SSH with terminal
  • 3. Node can be installed at the Ubuntu(Any) server
  • 4. Install Necessary NPM's : Node Package Manager
  • 5. Once installed, you can browse the server
  • 6. Upload Files
  • 7. Go to the folder and RUN IT with Terminal
  • 8. Go to 111.111.111.111:8000/index.html
  • 9. Ctrl + D to disconnect

Week 12

Node and Web Socket

PreviousWeek 11NextWeek 13

Last updated 6 years ago

Introduction

1. Create a Folder

2. Use Terminal OR iTerm to Access the Folder

cd (change directory)
ls (list items)

3. Install Node.js

Download

Install

4. Check if it is installed well

node -v

5. Install Socket.io

npm install socket.io

Installation Finished

  • node

  • socket.io

1. Server.js

2. index.html

Files are made

Now Let's RUN IT!!

1. Go to Terminal

node server.js

2. Check your Browser

localhost:3000/index.html

CTRL + C

It will kill the node server

killall node

It will kill node server

SERVER

1. You need a Hosting Server

2. Access the server by SSH with terminal

ssh root@111.111.111.111 

3. Node can be installed at the Ubuntu(Any) server

4. Install Necessary NPM's : Node Package Manager

  • socket

  • express

  • passport

  • etc

5. Once installed, you can browse the server

6. Upload Files

7. Go to the folder and RUN IT with Terminal

8. Go to 111.111.111.111:8000/index.html

http://YOUR_IP:8080/index.html

9. Ctrl + D to disconnect

https://nodejs.org/en/download/
https://socket.io/
https://github.com/socketio/socket.io
How To Install Node.js on Ubuntu 16.04 | DigitalOcean
Logo
2KB
server.js
server.js
1KB
index.html
index.html