CodeRealm is a platform for coding evaluation and question evaluation that supports multiple programming languages. It enables users to compile and evaluate code snippets in languages such as Java, C++, Python, JavaScript, and Golang, ans also supports 10+ programming languages .It also has the frontend web editor builtin for HTML,CSS and JS . The application was originally built as a monolithic MERN stack application, but has been migrated to microservices architecture with Golang as the backend and Next.js as the frontend.
- Coderealm frontend -- Next.js app
- Architecture
- Tech Stack
- Previous repo Built in MERN
- Features
- Installation and Usage
- Minikube Deployment Architecture
- Contributing
- License
- Demo
- Backend: GoLang
- Communication Protocol: gRPC ,REST
- Database ORM: Prisma (MongoDB)
- Caching: Redis
- User Database: PostgreSQL
- Data Storage: MongoDB
- Message Queue: Kafka
- Containerization: Docker
- Web Proxy: Envoy Proxy for the grpc server to web client
- Frontend: Next.js
- Styling: Shadcn UI , Tailwind css
- Deployment: Docker Compose, Kubernetes
- Support for Multiple Languages: CodeRealm supports 10+ programming languages for code compilation .
- Frontend Web Editor: CodeRealm includes a built-in web editor for HTML, CSS, and JavaScript, enabling users to write, preview, and evaluate their code directly in the browser.
- Microservices Architecture: The application is built using microservices architecture, allowing for scalability and maintainability.
- Queueing with Kafka: Code submissions are queued using Kafka for efficient processing.
- Database Integration: PostgreSQL is used as the user database, while Redis is used for handling run requests.
- Docker Compose and Kubernetes Deployment: CodeRealm can be deployed using Docker Compose for local development or Kubernetes for production environments.
- Docker and Docker Compose for local development.
- Kubernetes cluster for production deployment.
-
Clone the repository:
git clone https://github.com/lokesh-katari/CodeRealm_microservices.git
-
Navigate to the project directory:
cd CodeRealm_microservices
-
Start the application using Docker Compose:
docker-compose up
-
Access the application at
http://localhost:3000
.
Before doing the below steps you need to configure the kafka strimzi cluster
helm repo add strimzi https://strimzi.io/charts/
kubectl create ns coderealm
helm install strimzi-operator strimzi/strimzi-kafka-operator -n coderealm
make sure that you specify the namespace before deployment ,here :coderealm
-
Deploy the Kubernetes manifests in the
deployments/
directory:kubectl create ns coderealm kubectl apply -f deployments/
-
Access the application using the provided Ingress configuration.
-
If you are using minikube cluster then use the command
minikube ip
for getting the ip from the minikube and you can access tit from the browser 4. also configure the port for the envoy to expose it to the local system using the command:
kubectl port-forward service/code-frontend-service 8000:8000 -n coderealm
coderealm.final.mp4
Contributions are welcome! Please feel free to fork the repository and submit pull requests to contribute new features, improvements, or bug fixes.
This project is licensed under the MIT License.