A simple chat room application written in Rust powered by Yew.
- PubNub Account
PubNub allows you to create chat apps from scratch or add them to your existing applications. You can focus on creating the best user experience while PubNub takes care of scalability, reliability, security, and global legislative compliance.
-
Register a new PubNub account.
-
Copy your unique PubNub keys from the PubNub Developer Portal.
-
Click Apps, then Create New App.
-
Give your app a name, and click Create.
-
Click your new app to open its settings, then click its keyset.
-
Copy the Publish and Subscribe keys and paste them into your app as specified in the next step.
-
You'll need to run the following commands from your terminal.
-
Fork/Clone the GitHub repository.
git clone https://github.com/wiseaidev/chat-room
-
Navigate to the application directory.
cd chat-room
-
Set your pub/sub keys as environment variables:
export SUB_KEY_0="your-sub-key" export PUB_KEY_0="your-pub-key"
-
Run the client:
trunk serve --port 3000
Navigate to https://localhost:3000 to explore the app.
This project and the accompanying materials are made available under the terms and conditions of the Apache License Version 2.0
.