A real-time location service for identifying nearby users.
Start all microservices.
./scripts/start-docker.sh
Start the gateway service.
./scripts/start-gateway.sh
Start the proximity service.
./scripts/start-proximity.sh
- Create a new
.env
file in the root directory with the following variables:
REDIS_URL=redis://redis:6379
REDIS_GATEWAY_CHANNEL_IN=gateway.messages_in
REDIS_PROXIMITY_CHANNEL_IN=proximity.messages_in
AUTH0_DOMAIN=YOUR_AUTH0_DOMAIN
AUTH0_CLIENT_ID=YOUR_AUTH0_CLIENT_ID
AUTH0_CLIENT_SECRET=YOUR_AUTH0_CLIENT_SECRET
AUTH0_CALLBACK_URL=YOUR_AUTH0_CALLBACK_URL
PORT=8080
- Start the application:
./scripts/start-docker.sh
-
Navigate to the following link, authenticate, then copy the
session-cookie
. -
Navigate to the following link,
Connect
, and start sending messages e.g.
{ "sessionId": "session-cookie", "eventType": 1, "body": "{ \"user\": \"JohnDoe\", \"lat\": 37.7749, \"long\": -122.4194, \"timestamp\": \"2023-06-27T10:30:00Z\" }" }