Skip to content

tanhongit/Deno_Realtime_Chat_App

Repository files navigation

Welcome to Chat App Deno by TANHONGIT

Complete the realtime chat room application implementation using Deno and WebSockets.

What are WebSockets

WebSocket is actually a protocol that enables bidirectional communication between the client and the server of a web application over a single long living TCP connection.

Building the application

We are going to build the web application using:

  • Deno v1.3.3

Installation required

First of all, you need to install deno for your operating system: https://deno.land/#installation

You can customize the option and change the default deno version at the guide: https://github.com/denoland/deno_install#install-and-manage-multiple-versions

Runing

1. Clone Repo

$ git clone https://github.com/TanHongIT/Deno_Realtime_Chat_App
$ cd Deno_Realtime_Chat_App

2. run server at terminal

For windows

$ deno run --allow-net --allow-read server.js

For linux ubuntu

$ sudo /home/user/.deno/bin/deno run --allow-net --allow-read server.js

Don't forget to change "user" to the default user name for ubuntu.

Example: sudo /home/tanhongit/.deno/bin/deno run --allow-net --allow-read server.js

And now go to http://localhost:3000/


Link Demo: https://deno-realtime-chat.herokuapp.com/


Read more: Chat Room Realtime App With Ruby on Rails : https://github.com/TanHongIT/chat_room_rails_6

license