-
Notifications
You must be signed in to change notification settings - Fork 133
Steps for Running the Twindle CLI Application
-
Twitter Developer Access: Please read Wiki Page for Twitter API Access for getting access from Twitter. Must make sure that the Bearer token is successfully copied over from Twitter.
-
Create a .env file under twindle-cli folder: In the twindle-cli folder, one can see an example.env file. Create a new .env file and copy the example file's contents over and paste the bearer token from the first step. Make sure that the new .env file is not committed to git since it contains your bearer token - it is your responsibility to keep it safe.
-
Install Node dependencies using the command
npm install
. (The package.json file under twindle-cli folder contains an attribute called dependencies. This contains all the dependencies. This command installs all of those.) -
Running the application: Once the bearer token is replaced and the dependencies are installed, run the application using the following command:
node index -i <tweet_id> -f <file_format> -o <file_name_without_extension>
Currently the output file is placed in the same twindle-cli folder.
This documentation may be updated if there are any further code changes. Please visit this page to check for modifications if you run into any issues. a) Edited to change step 3 to npm install which will install all dependencies.