This project features a javascript application where users can signup and challenge their friends to online chess matches
https://drive.google.com/file/d/1Q236z1epmLZPFKjT0Gw8sLf5NBXs2R9J/view?usp=sharing
- Install xampp https://www.apachefriends.org/index.html
- Start apache and mysql from xampp app
- Open php myadmin
- Create database titled "chess"
- Create the tables shown below using the SQL tab within database chess
- Clone this repository to C:\xampp\htdocs
- open url http://localhost/onlineChess/chess/pages/openchess.html
- Application should be open :)
CREATE TABLE games
(
whiteplayerid
varchar(100) NOT NULL,
blackplayerid
varchar(100) NOT NULL,
Winner
varchar(100) NOT NULL DEFAULT '1',
gameID
int(11) NOT NULL AUTO_INCREMENT,
moves
mediumtext NOT NULL,
starter
int(11) NOT NULL DEFAULT 1,
PRIMARY KEY (gameID
)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4
CREATE TABLE users
(
user_first
varchar(100) NOT NULL,
user_last
varchar(100) NOT NULL,
user_email
varchar(100) NOT NULL,
user_pwd
varchar(100) NOT NULL,
rating
int(11) NOT NULL,
uid
varchar(100) NOT NULL,
user_uid
varchar(100) NOT NULL,
PRIMARY KEY (user_uid
)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
CREATE TABLE friends
(
user1id
varchar(100) NOT NULL,
user2id
varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4