not really known
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
jrtechs e2cd7ddef3 Implemented using a templating system for the html generation. 5 years ago
googletrendsgame Implemented using a templating system for the html generation. 5 years ago
words purified word bank 6 years ago
.DS_Store First Production Build - testing on destination server 6 years ago
README.md Refactored players with es6 6 years ago
game.html Add files via upload 6 years ago

README.md

GoogleTrendsGame

Guess the trends beat your friends

alt text

Server dependencies

npm init -y
npm install --save express morgan
npm install socket.io --save
npm install mysql --save
npm install sanitizer --save
npm install google-trends-api --save
npm install promise --save
npm install async --save

npm install --save-dev babel-cli babel-preset-es2015 rimraf

###Configure Babel

touch .babelrc

In that file put:

{
  "presets": ["es2015"]
}

##Database Construction

create database googleTrends;

use googleTrends;

create table users(
  user_id mediumint unsigned not null AUTO_INCREMENT,
  name varchar(30) not null,
  primary key(user_id)
);

create table data(
  data_id mediumint unsigned not null AUTO_INCREMENT,
  user_id mediumint unsigned not null,
  word varchar(100) not null,
  score mediumint not null,
  primary key(data_id)
);


grant all on googleTrends.* to trendingUser@localhost identified by "password";

Socket IO events for server