Random Rants Compilation and Local Execution Tutorial
We've just made a way to get the site without the risk of an attack, this version uses a browser-based fake server. It isn't 100% working but most functions work. View the safe version here
SECURITY WARNING
Random Rants is an outdated version of Random Rants + and has significant security vulnerabilities. This tutorial is provided strictly for historical reference and to allow local testing. DO NOT expose this application to the public internet or use it for any real-world communication.
This guide covers the bare minimum setup: the website (client) and a basic WebSocket echo server. The original application may have used additional, optional servers. You may get warnings or error messages mentioning servers are unavailible, these are servers that have gone down because of glitch removing & shutting down app hosting.
Required Software
Ensure you have the following installed on your system:
- Node.js (and npm): Essential for running the JavaScript server and installing packages.
- Git: Necessary for downloading the source code repositories.
- Terminal/Command Prompt: To execute the required commands (e.g., cmd.exe on Windows, Terminal on macOS/Linux).
- Code Editor: To modify a configuration file (e.g., VS Code, Sublime Text, Notepad++).
Set Up the Website (Client)
The website will be served using http-server, a simple static file server.
1.1 Terminal Setup (Terminal Window 1)
Open your first terminal window.
1.2 Get the Source Code
Run the following commands to download the website's source code and enter the directory:
git clone https://github.com/Random-Rants-Chat/randomrants.git
cd randomrants
1.3 Install the Web Server
Install the http-server package globally so you can use it anywhere:
npm install --global http-server
1.4 Run the Web Server
Start the local server. Do not open the URL yet; the WebSocket server needs to be running first.
http-server
The output will usually show the server is running on http://localhost:8080. Keep this terminal window open and running.
Set Up the WebSocket Echo Server
The client needs a live WebSocket server to connect to. This server will handle real-time communication.
2.1 Terminal Setup (Terminal Window 2)
Open a second terminal window.