Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yingjia-z/code-execution-website
https://github.com/yingjia-z/code-execution-website
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/yingjia-z/code-execution-website
- Owner: Yingjia-Z
- Created: 2024-06-03T01:01:36.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-03T01:08:52.000Z (7 months ago)
- Last Synced: 2024-06-04T03:29:08.958Z (7 months ago)
- Language: TypeScript
- Size: 313 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Notes:
Sadly this website doesn't work as expected :(
I plan to integrate `@uiw/react-codemirror` as the code execution platform (related code located in [CodeEditor.tsx](frontend/src/components/CodeEditor.tsx))
Here is the error consistently occured:
Unrecognized extension value in extension set ([object Object]).
I've tried to clean up node modules and reinstall;
directly use `codemirror` to avoid multiple instances of `@codemirror/state` (related code located in [CodeEditor2.tsx](frontend/src/components/CodeEditor2.tsx)). Unfortunately, none of the fixes worked.## Running the website:
##### Running the backend:
```bash
cd backend
python -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
pip install -r requirements.txt
uvicorn main:app --reload
```##### Running the frontend:
```bash
cd frontend
npm install
npm run dev
```When encounter dependency conflicts, consider resolving the conflicts by:
```bash
# Install specific packages with legacy peer dependencies option
npm install @uiw/react-codemirror @codemirror/lang-python --legacy-peer-deps# If necessary, reinstall all dependencies with legacy peer dependencies option
rm -rf node_modules package-lock.json
npm install --legacy-peer-deps# As a last resort, force install specific packages
npm install @uiw/react-codemirror @codemirror/lang-python --force
```## Current Design:
![alt text](Screenshot.png)