This monorepo contains both the client and server components of the Code Runner project. The client folder uses Vite React.js for the frontend, while the server folder uses Node.js for the backend. This project allows you to run C++ code in a containerized manner.
![Screenshot (50)](https://github.com/tech-wizard720/meetcode/assets/73032064/5ecb4a3f-fb10-4de9-8e5e-a7
cb0bc37127)
Before running this project, please ensure that you have the following dependencies installed:
- Node.js (v14 or higher)
- Docker
- RabbitMQ server
Follow the steps below to start the project locally:
- Build the docker image by the following command:
-
docker build -t my-cpp-image .
-
Start the RabbitMQ server. Make sure it is running and accessible.
-
Start the server:
- Navigate to the
server
directory:cd server
- Install the server dependencies:
npm install
- Start the server:
or
npm start
nodemon start
- Run the client:
- Navigate to the
client
directory:cd client
- Install the client dependencies:
npm install
- Start the client:
npm run dev
The client will be accessible at http://localhost:3000
.
Once the project is up and running, you can use the Code Runner to execute C++ code in a containerized environment. Follow the instructions provided by the client to submit and execute your C++ code.
Contributions to this project are welcome. To contribute, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them.
- Push your changes to your forked repository.
- Submit a pull request describing your changes.
Please ensure that your code follows the project's coding conventions and includes appropriate tests.