This project is live at-------> https://unplug-the-players.herokuapp.com/
The main objective of the project is to create a web application game which allows to explore our knowledge in football. It will be like quiz-based game where game player will be awarded different points on his correct answer at different stage. The pre-objective is to gather the complete data and pre-process the data on which our web app will run.
- Data Collection.
- Data Preprocessing
- Developing Cosine Similarty function.
- Creating web pages.
- Deployment.
The entire code has been developed using Python programming language and is hosted on Heroku. The analysis and model is developed using ScikitLearn and scipy library. The website is developed using Flask.
- Open the
Terminal
. - Clone the repository by entering
$ git clone https://github.com/shsarv/UNPLUG-THE-PLAYER.git
. - Ensure that
Python3
andpip
are installed on the system. - change the diectory to repository name using
$ cd [Repository name]
. - Create a
virtualenv
by executing the following command:virtualenv mygame
. - Activate the
mygame
virtual environment by executing the follwing command:source env/bin/activate
. - Enter the cloned repository directory and execute
pip install -r requirements.txt
. - Now, execute the following command:
flask run
and it will point to thelocalhost
server with the port5000
. - Enter the
IP Address: http://localhost:5000
on a web browser and use the application.
The directory contains web sub directories and a sub directory for hosting model and other scripts:
-
app.py The file which contains all the main backend operations of the website and used to run the flask server locally.
-
Procfile for setting up heroku.
-
requirements.txt contains all the dependencies.
-
templates contains the html file.
-
static contains the css,javascript files and images.
-
notebook contains all the jupyter notebooks and model development.
-
Resources.zip contains all the report and other resources in form of compressed file.
The following dependencies can be found in requirements.txt:
For better understanding, flow of the project is as follows:
Determine the data set Understanding
Load the data
Analyse the data
Data pre-processing
Define the function to Pairwise distances between observations in n-dimensional space.
selecting 6 similar elements from the data randomly.
choose 5 attribute of selected element as a hint for end user
if user unable to choose the right player, window gives alert.
The app.py compares the dataset every time it executes.
MIT License
Sarvesh Kumar Sharma π ππ» |
Satyam Kumar jha π» |
Sachi Tripathi π» |
Jeevesh Gangwar π» |
Ashutosh Tripathi π» |