Krutik48 / code-runner

A code runner

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Project Setup Instructions

To run this project, follow these steps:

  1. Create a .env File

    Create a .env file in the project root directory and add your MongoDB connection URL to it. You can obtain a MongoDB URL from your MongoDB hosting provider.

    Example .env file:

DATABASE_URL=mongodb://<username>:<password>@<host>:<port>/<database_name>
  1. Install Dependencies

Ensure you have Node.js and npm installed on your machine. If not, you can install them from Node.js Official Website. Also it requires you to have Python, g++ and gcc installed to test the runners

Then, navigate to the project directory in your terminal and run:

$ npm install
  1. Run the Project

To start the development server, run the following command:

$ npm run dev
  1. Docker (Optional)

If you don't want to install the compilers/interpreters on your local machine, you can use the provided Dockerfile to run the project in a Docker container. Make sure you have Docker installed.

$ docker build -t code-runner .
$ docker run -p 3000:3000 project-name

Contribution Opportunities

If you're interested in contributing to the project, here are some beginner-friendly tasks you can tackle:

  1. Add a New Language Runner

You can contribute by adding a runner for a programming language that's not already supported. Be sure to update the Prisma schema and Dockerfile as needed.

  1. Improve the User Interface (UI)

Enhance the project's user interface by making it more user-friendly, responsive, or visually appealing. You can work on frontend components, styles, or layouts.

  1. Write Tests

Help improve the project's reliability by writing tests for existing features. You can use testing frameworks like Jest, Mocha, or Chai, depending on the project's stack.

Remember to create a fork of the project, make your changes, and submit a pull request to contribute. Feel free to reach out to the project maintainers if you have any questions or need guidance.

Happy coding! 🚀

code_runner.mp4

About

A code runner


Languages

Language:TypeScript 98.1%Language:Dockerfile 1.2%Language:JavaScript 0.5%Language:CSS 0.2%