The purpose of this app is to querry the daily views of youtube channel and also can get total count.
Run the following command in 'root' directory of an app in command prompt.
npm install
CREATE TABLE 'test'.'views' (
'id' INT NOT NULL AUTO_INCREMENT,
'username' VARCHAR(45) NOT NULL,
'count' VARCHAR(45) NOT NULL,
'date' DATE NOT NULL,
PRIMARY KEY ('id'));
Run the following command in 'root' directory of an app in command prompt.
node server.js
You can see the port number in command prompt after sucessfull run
Inside config/config.js
db: You can change username, password, hostname and database name. "mysql://username:password@hostname/database"
port: port number
cronTime: SS MM HH * * *
timeZone: any valid time zone
apiKey: apiKey