Skip to content
/ judge Public

OptiOne is a codeing platform made using spring-boot and kafka.

Notifications You must be signed in to change notification settings

opti-one/judge

Repository files navigation

How to run this project

KAFKA_ROOT_DIR=`~/path/to/kafka_2.x-x.x.x`
PROJECT_ROOT=`~/path/to/project/root/`

Messaging Queue common usage

Start Zookeeper

"$KAFKA_ROOT_DIR/bin/zookeeper-server-start.sh" "$KAFKA_ROOT_DIR/config/zookeeper.properties"

Start Kafka Broker

"$KAFKA_ROOT_DIR/bin/kafka-server-start.sh" "$KAFKA_ROOT_DIR/config/server.properties"

Delete Topic

"$KAFKA_ROOT_DIR/bin/kafka-topics.sh" -bootstrap-server localhost:9092 --delete --topic ProblemSubmittion

Start consumer

"$KAFKA_ROOT_DIR/bin/kafka-console-consumer.sh" -bootstrap-server localhost:9092 --topic ProblemSubmittion --from-beginning

Start Postgres

brew services start postgresql@14

Run Backend

cd "$PROJECT_ROOT/judge"
./gradlew bootrun

Run CodeExecutor

cd "$PROJECT_ROOT/code_executor"
./gradlew bootrun

Start Frontend

cd "$PROJECT_ROOT/webapp"
npm start

About

OptiOne is a codeing platform made using spring-boot and kafka.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published