This is a simple Copy Checker app with a React frontend and FastAPI backend.
It allows you to upload two text files and checks their similarity, highlighting matched lines.
- Python 3.7+
- Node.js and npm
- Git (optional)
-
Navigate to the backend directory:
cd backend
-
(Optional) Create and activate a virtual environment:
python -m venv venv # On Windows: venv\Scripts\activate # On macOS/Linux: source venv/bin/activate
-
Install dependencies:
pip install fastapi uvicorn python-multipart
-
Run Backend Server:
uvicorn main:app --reload
-
Navigate to the frontend directory:
cd frontend
-
Install dependencies:
npm install
-
Run frontend development Server:
npm start
- Open the frontend in your browser.
- Upload two text files using the upload buttons.
- Click Start Scanning.
- The similarity percentage and matched lines will display.
- Make sure the backend server is running before using the frontend.
- The backend supports CORS, so frontend and backend can run on different ports locally.