Skip to content

Cron-J/youtube-view-count-in-node.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

youtube-view-count-in-node.js

The purpose of this app is to querry the daily views of youtube channel and also can get total count.

Install an app

Run the following command in 'root' directory of an app in command prompt.

Install node packages

npm install

Create Database

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 an app

Run Server

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

App Configuration

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

Screenshot

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages