This is a simple Python-Flusk-React application to detect plagiarism using Rabin-Karp string searching algorithm.
- Clone repo:
git clone https://github.com/sharafat/plagiarism-detector.git - Change directory to
plagiarism-detector - Build application:
docker build -f Dockerfile -t plagiarism-detector . - Run application:
docker run --rm -p 3000:3000 plagiarism-detector - Browse using a web browser:
http://localhost:3000 - Log in using the credential: email =
demo@demo.com/ password =demo
- Clone repo:
git clone https://github.com/sharafat/plagiarism-detector.git - Change directory to
plagiarism-detector/apiand runflask run --no-debuggerto start the back-end. - Open another terminal tab/window, change directory to
plagiarism-detectorand runyarn startto start the front-end. - Browse using a web browser:
http://localhost:3000 - Log in using the credential: email =
demo@demo.com/ password =demo
- Change directory to
plagiarism-detector/api - Install the dependent modules:
pip3 install -r ./requirements.txt - Run tests with coverage:
coverage run --source=api,services -m pytest && coverage report -m - Output should be like the following:
tests/test_apis.py ......... [100%]
================== 9 passed in 0.76s =========================
Name Stmts Miss Cover Missing
-------------------------------------------------------------
api.py 66 0 100%
services/DB.py 21 0 100%
services/PlagiarismChecker.py 46 0 100%
services/RabinCarp.py 29 0 100%
-------------------------------------------------------------
TOTAL 162 0 100%





