Skip to content

A multiplayer game matchmaking server for Snake and Ladders and Connect Four

Notifications You must be signed in to change notification settings

YashasG98/Multiplayer-Game-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multiplayer-Game-Server

A web app which supports multiplayer gaming.

Setting up MySQL

sudo apt update
sudo apt install mysql-server libmysqlclient-dev

#setting your password
sudo mysql
mysql > ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'your_new_password';
mysql > FLUSH PRIVILEGES;
mysql > exit

mysql -u root -p
#enter your password when prompted
mysql > source db_config.sql 
mysql > quit
exit

Setting up Virtual Environment and Install Requirements

sudo pip install virtualenv
python3 -m venv flaskenv
source flaskenv/bin/activate
pip install -r requirements.txt

Running the project

Change your password at line 12 of server.py

python3 server.py

To login and play, use two different browsers, as we use cookies to save user information.