A simple terminal client for testing the Game CRM backend. This client allows you to:
- Log in to the system
- Store authentication token
- Connect to the platform socket
- Connect to a game socket (in testing mode)
- Send test messages through the socket
- Node.js (v14 or higher)
- Clone this repository
- Navigate to the terminal-client directory
- Install dependencies:
npm install
Edit the .env file to configure the client:
API_BASE_URL=http://localhost:5000/api
SOCKET_URL=http://localhost:5000
NODE_ENV=testingnpm startThe server will run on the port specified in the .env file or default to 8080.
- Token Storage: The client stores the authentication token in a local file for future use.
- Socket Connection: Connects to both platform and game sockets (in testing mode).
- Real-time Updates: Displays alerts and data received from the server.