Code Together is a web-based application that provides a coding environment for algorithmic problem-solving. Users can write code in an advanced code editor with VSCode like features and run it against a set of predefined test cases, receiving feedback on the correctness of their solutions.
- Frontend: React, React-Router, and Chakra UI
- Backend: FastAPI
Code execution is done in a sandboxed Docker environment using the Piston API. The testing framework is custom built to compare against tests and provide user feedback.
To set up the Algorithmic Coding Platform locally, follow these steps:
- Clone the repository:
git clone https://github.com/aryanpatel3/code-together
- Install the dependencies for the frontend and backend:
- ensure you have nodejs and python installed
- instructions are for mac and linux:
- for the frontend, navigate to the
frontend
directory and runnpm install
. - for the backend, navigate to the
app
directory and create a virtual environment usngpython -m venv .venv
. Activate the environment usingsource .venv/bin/activate
and runpip install -r requirements.txt
.
- for the frontend, navigate to the
- Start the frontend and backend servers:
- for the frontend, navigate to the
frontend
directory and runnpm start
. - for the backend, navigate to the
app
directory and runpython main.py
.
- for the frontend, navigate to the
- Access the application in your browser at
http://localhost:3000
. The server is started athttp://localhost:8000
.