An open API service indexing awesome lists of open source software.

https://github.com/tanhongit/deno_realtime_chat_app

Build a Simple Realtime Chat App with Deno and WebSockets
https://github.com/tanhongit/deno_realtime_chat_app

chat-application chat-room deno deno-realtime denojs real-time realtime-chat realtime-messaging

Last synced: 6 months ago
JSON representation

Build a Simple Realtime Chat App with Deno and WebSockets

Awesome Lists containing this project

README

          

# 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