KAFKA_ROOT_DIR=`~/path/to/kafka_2.x-x.x.x`
PROJECT_ROOT=`~/path/to/project/root/`
"$KAFKA_ROOT_DIR/bin/zookeeper-server-start.sh" "$KAFKA_ROOT_DIR/config/zookeeper.properties"
"$KAFKA_ROOT_DIR/bin/kafka-server-start.sh" "$KAFKA_ROOT_DIR/config/server.properties"
"$KAFKA_ROOT_DIR/bin/kafka-topics.sh" -bootstrap-server localhost:9092 --delete --topic ProblemSubmittion
"$KAFKA_ROOT_DIR/bin/kafka-console-consumer.sh" -bootstrap-server localhost:9092 --topic ProblemSubmittion --from-beginning
brew services start postgresql@14
cd "$PROJECT_ROOT/judge"
./gradlew bootrun
cd "$PROJECT_ROOT/code_executor"
./gradlew bootrun
cd "$PROJECT_ROOT/webapp"
npm start