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.

37 lines
714 B

6 years ago
6 years ago
6 years ago
6 years ago
  1. # GoogleTrendsGame
  2. Guess the trends beat your friends
  3. ## Server dependencies
  4. ````
  5. npm init
  6. npm install express
  7. npm install socket.io
  8. npm install mysql
  9. npm install sanitizer
  10. npm install google-trends-api
  11. npm install promise
  12. ````
  13. ##Database Construction
  14. create database googleTrends;
  15. use googleTrends;
  16. create table users(
  17. user_id mediumint unsigned not null AUTO_INCREMENT,
  18. name varchar(30) not null,
  19. primary key(user_id)
  20. );
  21. create table data(
  22. data_id mediumint unsigned not null AUTO_INCREMENT,
  23. user_id mediumint unsigned not null,
  24. word varchar(100) not null,
  25. score mediumint not null,
  26. primary key(data_id)
  27. );
  28. grant all on googleTrends.* to trendingUser@localhost identified by "password";