Skip to content

Commit 579543a

Browse files
authored
Update README.md
1 parent 534817e commit 579543a

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

README.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,32 @@ docker pull mongo
132132
docker run -p 6379:6379 redis/redis-stack-server:latest
133133
docker run -p 9092:9092 -e KAFKA_ZOOKEEPER_CONNECT=<IPv4-Address>:2181 -e KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://<IPv4-Address>:9092 -e KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=1 confluentinc/cp-kafka
134134
```
135-
4. Run Project :
135+
4. Before Running the Project: Set Configuration
136+
- Before launching the ScalableChat project, it's essential to configure the project settings in .env based on your specific setup.
137+
```bash
138+
# API ENV'S
139+
WEB_API_PORT=8000
140+
WEB_API_ALLOWED_ORIGIN=["http://localhost:5173", "http://127.0.0.1:5173"]
141+
142+
# DATABASE ENV'S
143+
MONGO_CONNECT_STRING="mongodb://127.0.0.1:27017/scalable-chat-app-db"
144+
145+
# SOCKET ENV'S
146+
SOCKET_ALLOWED_ORIGIN=["http://localhost:5173", "http://127.0.0.1:5173"]
147+
148+
149+
#REDIS ENV'S
150+
REDIS_CHANNEL="redis-message-channel"
151+
152+
#KAFKA ENV'S
153+
KAFKA_GROUP_ID="scalable-chat-app"
154+
KAFKA_BROKERS="<IPv4-Address>:9092"
155+
PROCESS_KAFKA_MESSAGE_LIMIT=100
156+
KAFKA_TOPIC="chat-updates"
157+
KAFKA_NO_OF_PARTITIONS=1
158+
```
159+
160+
5. Run Project :
136161
```bash
137162
node ./app/kafka/KafkaAdmin.js
138163
node KafkaConsumerRunner.js

0 commit comments

Comments
 (0)