Encrypted chat room built using WebSockets.
-
Clone the repository.
-
Create a
.envfile in\clientand give a secret key:NEXT_PUBLIC_KEY = '<YOUR_KEY>' -
Open two terminals, one in
\serverand one in\client -
Run command
yarn devon both the terminals. -
Open
http://localhost:3000on 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.jsand change the IP to the the host's IP. -
Navigate to
\server\index.jsand change the CORS origin IP to the host's IP. -
Open two terminals on the host machine, one in
\serverand one in\client -
Run command
yarn devon both the terminals. -
Open
http://<YOUR_IP>:3000on 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

