Sunbear is a WebSocket-based chat application built using Electron for desktop use. The app allows users to communicate with one another through a simple, real-time chat interface. It can be used locally or hosted on a server for external access.
You can use the prebuilt version of Sunbear for Windows available. Simply download and run the executable file to start using the application.
If you want to build Sunbear for your own device, follow the instructions below to set it up using Electron Forge:
-
Clone or Download the Repository:
- Clone the repository or download the source code.
-
Install Dependencies:
- In your terminal, navigate to the project directory and run the following command to install the required dependencies:
npm install
- In your terminal, navigate to the project directory and run the following command to install the required dependencies:
-
Run the Application:
- To start the application, run:
npm start
- To start the application, run:
-
Packaging the Application:
- To package the app for your platform, run:
npm run make
This will create an installer for your operating system.
- To package the app for your platform, run:
To host your own server for the chat application:
-
Download the Code:
- Download the code or clone the repository.
-
Run the Server:
- Navigate to the project directory, and run the following command to start the WebSocket server:
node server.js
Alternatively, if you are on Windows, you can run the provided BOOT.bat file to start the server.
- Navigate to the project directory, and run the following command to start the WebSocket server:
- All usernames and profiles are stored locally in the
users.json
file. - Users can register by sending a request to the following URL format:
Replace
http://SERVERIP?username=JohnDoe&password=mysecret
SERVERIP
with the IP address of the server you're hosting on, and replaceJohnDoe
andmysecret
with the desired username and password.
Sunbear is primarily designed for local use. However, you can use tools like RadminVPN to simulate a local network and enable communication between users on different devices.
-
Set up RadminVPN:
- Download and install RadminVPN on both the host and client devices. You can find the download here.
-
Connect to the Same Network:
- After installing, both devices need to connect to the same virtual network via RadminVPN.
-
Access the Server:
- Use the IP address provided by RadminVPN to connect to the server.
Once you're connected, users can interact with the chat application just like they would on a local network.