An online code editor built using React (frontend) and FastAPI (backend) that allows users to write and execute code in multiple programming languages such as Python and JavaScript. The frontend is deployed on Vercel and the backend is hosted on Render.
- Frontend: https://online-code-editor-zge3-git-main-dineshgokarams-projects.vercel.app
- Backend: https://online-code-editor-tree-main-backend.onrender.com
- React
- Fetch API for backend integration
- Vercel for deployment
- FastAPI
- Pydantic
- Subprocess (to execute code safely)
- Render for deployment
- 🔤 Language selection (e.g., Python, JavaScript)
- 🧑💻 Real-time code input
- 🟢 Runs code and displays output
- ⚙️ FastAPI backend with code execution logic
- 🌐 Fully deployed & accessible online
- React app
- Code editor interface
- Language dropdown
- Send code to backend using
POST /run
- FastAPI app
- Accepts
POST
request at/run
- Executes code in selected language
- Returns stdout and stderr as JSON
cd frontend
npm install
npm run dev
Screenshots----------------------------------------------------------------









