This is an automation tool for detecting plagarism in the code assignments.
Note: This project uses MOSS software by Standford Univerity
- Flask
- React
- Postgresql
-
cd to root dir ie. GPD
-
npm run start -
cd to GPD/server
-
flask run -
Start postgresql server using
pg_ctl -D /usr/local/var/postgres start
> Back End
pip install Flask
cd server
pip install -r requirements.txt
Create a .env file in the server directory and add the following:
DB_SERVER = localhost:5432
DB_USER = username
DB_PASSWORD = admin
DB_NAME = gpd_dev
MOSS_USER_ID = moss_id
SENDER_EMAIL = email
RECEIVER_EMAIL = email
APP_PASSWORD = email_password
MAXIMUM_JUMP_PERCENTAGE = 50
Make the necessary changes based on your system configurations.
Create directories app/files in the project directory.
> Front End
> Postgres
For Mac, postgresql DB installation
Get homebrew
brew update then brew doctor
brew install postgresql
start server using pg_ctl -D /usr/local/var/postgres start
Enter psql postgres to get started
Some handy command for Postgres
CREATE DATABASE gpd_dev;- Dump .pgsql into DB
psql gpd_dev < ./GitHub-Plagiarism-Detector/server/database.sql
Useful commands in psql command line
- to use DB
\c gpd_dev - To list all DBS
\list - To list all Tables use
\dt - To Empty table
truncate [table_name] cascade; #if foreign keys are there



