https://github.com/paramt/coderacer
https://github.com/paramt/coderacer
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/paramt/coderacer
- Owner: paramt
- Created: 2024-10-28T04:11:46.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-10-28T13:59:17.000Z (over 1 year ago)
- Last Synced: 2025-01-25T18:29:37.902Z (over 1 year ago)
- Language: TypeScript
- Size: 200 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Coderacer
## Approach
- React/Typescript in the frontend with Tailwind CSS
- AceEditor for code editing
- FastAPI Python server for the backend
- WebSockets for real time communication between frontend and backend
## Features
- recieve feedback for each individual test case (private test values are hidden)
- basic error checking (e.g. rejects more than 2 players per room, can't have same name as opponent)
- responsive design
## Run locally
```
cd frontend
npm install
npm start
```
```
cd backend
pip install -r requirements.txt
python main.py
```
- configure `TOTAL_TIME` in `./backend/config.py`
## Todo if I had more time
- cleanly handle player disconnects (inform other player)
- UI for restarting new game
- dark mode
- dockerize