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.

39 lines
806 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. create database googleTrends;
  16. use googleTrends;
  17. create table users(
  18. user_id mediumint unsigned not null AUTO_INCREMENT,
  19. name varchar(30) not null,
  20. primary key(user_id)
  21. );
  22. create table data(
  23. data_id mediumint unsigned not null AUTO_INCREMENT,
  24. user_id mediumint unsigned not null,
  25. word varchar(100) not null,
  26. score mediumint not null,
  27. primary key(data_id)
  28. );
  29. grant all on googleTrends.* to trendingUser@localhost identified by "password";