Make sure that before running the client side to run the server because the constant for the API will be const SERVER_URL = 'http://localhost:3000'
So first download the server repo and make sure to run that.
- Node.js (v16.0.0 or newer)
- npm or yarn
git clone https://github.com/ahref13/existential_client.git
# or download and extract the ZIP fileNavigate to the project directory and install dependencies:
cd liminal-network-client
npm install
# or
yarn installOpen components/LiminalNetwork.jsx and locate the SERVER_URL constant:
const SERVER_URL = 'http://localhost:3000'; // Replace with server IP if neededIf running the server on a different machine or port, update this URL accordingly.
npm run dev
# or
yarn devThe application will be available at http://localhost:3001 (or another port if 3001 is in use).
- Open the application in a web browser
- Click the "Initiate Connection Request" button
- Observe the cockroach moving in circles during the loading state
- The server will respond with a random HTTP status after a random delay
- If auto-retry is enabled, non-success responses will trigger automatic retries