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.

48 lines
861 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. ````
  14. ##Database Construction
  15. ````
  16. create database googleTrends;
  17. use googleTrends;
  18. create table users(
  19. user_id mediumint unsigned not null AUTO_INCREMENT,
  20. name varchar(30) not null,
  21. primary key(user_id)
  22. );
  23. create table data(
  24. data_id mediumint unsigned not null AUTO_INCREMENT,
  25. user_id mediumint unsigned not null,
  26. word varchar(100) not null,
  27. score mediumint not null,
  28. primary key(data_id)
  29. );
  30. grant all on googleTrends.* to trendingUser@localhost identified by "password";
  31. ````
  32. ## Socket IO events for server
  33. ````
  34. ````