Encrypted chat room built using WebSockets.
-
Clone the repository.
-
Create a
.env
file in\client
and give a secret key:NEXT_PUBLIC_KEY = '<YOUR_KEY>'
-
Open two terminals, one in
\server
and one in\client
-
Run command
yarn dev
on both the terminals. -
Open
http://localhost:3000
on a browser of your choice. -
Multiple instances can be opened on the same machine to simulate multiple users and test concurrency.
-
All the devices that want to communicate must be on the same network.
-
Navigate to
\client\context\socket.js
and change the IP to the the host's IP. -
Navigate to
\server\index.js
and change the CORS origin IP to the host's IP. -
Open two terminals on the host machine, one in
\server
and one in\client
-
Run command
yarn dev
on both the terminals. -
Open
http://<YOUR_IP>:3000
on all the devices. -
For all the devices to join the same room, enter the same Room code.
Designed using Figma https://www.figma.com/file/dq6XOyPZAURNaK16wGFtNt/%2FeChat*?node-id=0%3A1&t=JZKNSxdO2c59Nfkk-1