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.

49 lines
879 B

6 years ago
6 years ago
6 years ago
6 years ago
  1. # GoogleTrendsGame
  2. Guess the trends beat your friends
  3. ![alt text](http://www.devhumor.com/content/uploads/images/August2017/java-javascript.jpg)
  4. ## Server dependencies
  5. ````
  6. npm init
  7. npm install express
  8. npm install socket.io
  9. npm install mysql
  10. npm install sanitizer
  11. npm install google-trends-api
  12. npm install promise
  13. npm install async
  14. ````
  15. ##Database Construction
  16. ````
  17. create database googleTrends;
  18. use googleTrends;
  19. create table users(
  20. user_id mediumint unsigned not null AUTO_INCREMENT,
  21. name varchar(30) not null,
  22. primary key(user_id)
  23. );
  24. create table data(
  25. data_id mediumint unsigned not null AUTO_INCREMENT,
  26. user_id mediumint unsigned not null,
  27. word varchar(100) not null,
  28. score mediumint not null,
  29. primary key(data_id)
  30. );
  31. grant all on googleTrends.* to trendingUser@localhost identified by "password";
  32. ````
  33. ## Socket IO events for server
  34. ````
  35. ````