This project provides a mock implementation for the XRAY demo, designed to facilitate development and testing without requiring access to the full production environment.
- Mock services and endpoints for XRAY demo scenarios
- Easy setup for local development and integration testing
- Reuses core modules (
signalandrabbit) from the main XRAY project for consistency
- Node.js (version X or higher)
- npm or yarn
Clone the repository:
git clone https://github.com/pedramcode/xray-demo-mock.git
cd xray-demo-mockInstall dependencies:
npm install
# or
yarn installSet .env file:
RABBITMQ_URL=amqp://localhost:5672Start the mock server:
npm start
# or
yarn startThe server will start on the default port (e.g., 3000). You can configure the port and other settings via environment variables.
src/- Main source code for the mock server and servicessignal/- Reused module from the main XRAY project for signaling functionalityrabbit/- Reused module from the main XRAY project for RabbitMQ integration
This project reuses the following modules from the main XRAY project:
- signal: Provides signaling mechanisms for inter-service communication.
- rabbit: Handles RabbitMQ messaging and queue management.
Refer to the main XRAY project documentation for details on these modules.