This is the frontend component of the SubEdit web application. It is built with React + TypeScript and Vite.
Install component dependencies and plugins:
cd subedit/frontend
npm installCreate a .env file in subedit/frontend directory with the following variables:
# Set to '' to run in production
VITE_DEBUG=true
# Defaults to http://localhost:8000 when VITE_DEBUG=true
VITE_API_BASE_URL=https://your.backend.domain
Please note that this repository does not contain the folowing images:
frontend/src/assets/engine_logo.png
frontend/src/assets/ddg_logo.png
frontend/src/assets/github-mark.svg
frontend/src/assets/loading.gif
frontend/src/assets/switch_language.svgYou should replace them with your own images or remove them from code manually.
Ensure your FastAPI backend is running and CORS is properly configured to accept requests from your frontend origin (e.g., http://localhost:5173 or your deployed domain).
To start dev server with hot reload:
npm run devTo build production-ready assets:
npm run buildTo preview production build locally:
npm run previewFeel free to submit issues or pull requests.
MIT License