Tuesday, 3 October 2017

Help with nodejs project

Hello, I'm trying for the first time to do an HTML5 website with twitter integration. For now I'm using a downloaded template. My problem is this: I insert a script with: And the twitter.js contains: var Twit = require('twit'); var T = new Twit({ ... .... }); I've omitted the data in the Twit. So, I noticed this. I tried an alert('hello'); after the variables and it doesn't show up. It shows up if it's in the first line. What's the problem??edit: apparently is because I can't use the twitter.js with the webpage but it has to be used with node. How can I integrate it in a webpage?

Submitted October 03, 2017 at 03:39PM by snakethesniper

No comments:

Post a Comment