Project to test multiple instances of websocket server and multiple clients subscribing and publishing to these instances. Used redis to ensure that if a client A subscribes to an instance X and a message to the client A is published to an instance Y, the instance X (where client A is connected to) pushs the notification to client A.
Install:
Create a file named .env
with them in the project root folder. Following the provided env.example
.
For a fast start you can just rename the env.docker.example
file to .env
On the terminal:
docker-compose up
if you are using your own database, run the following command to start just the application
docker-compose up api
Go to http://localhost:3000/documentation
To stop just run
docker-compose down
Install:
Set the environment variables on your context or create a file named .env
with them in the project root folder. Following the provided env.example
.
For a fast start you can just rename the env.example
file to .env
Run:
docker-compose up -d db
Install the dependencies:
npm install
npm run dev
Go to http://localhost:3000/documentation
To stop the database just run
docker-compose down