Skip to content

Using Twitters API to interact with users profile in real-time.

License

Notifications You must be signed in to change notification settings

brandonv98/twitter-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twitter API

Using Twitter's API to store and manage information.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

What dependencies you need to install the software and how to install them as followed

  1. NodeJS - As an asynchronous event driven JavaScript runtime, Node is designed to build scalable network applications.

  2. Npm - npm makes it easy for JavaScript developers to share and reuse code, and makes it easy to update the code that you’re sharing, so you can build amazing things.

  3. Express - Express is a minimal and flexible Node.js web application framework that provides a robust set of features for web and mobile applications

  4. Twitter API - Publish and analyze Tweets, optimize ads, and create unique customer experiences.

  5. Twit API - Twitter API Client for node (REST & Streaming API).

  6. pugJS - high-performance template engine heavily influenced by Haml and implemented with JavaScript for Node.js and browsers

  7. Homebrew - Homebrew installs packages to their own directory and then symlinks their files into /usr/local.

  • Recommended install with brew.
    • past the following into your Terminal
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Install nodeJS & npm with brew : past the following into your terminal

$ brew install node
  • After install is complete check install using the following in your terminal.
    For node - node -v this will print out a version number like this v10.6.0.
    Now do the same for npm as followed npm -v output will look something like this 6.2.0.

To learn more please visit - node & npm install.


Installing

A step by step series of examples that tell you how to get a development env running

1. Step One

In your project root dir ('./') use the following command in your terminal.

$ git clone https://github.com/brandonv98/twitter-api.git

2. Step Two

Once you have cloned the repo $ cd/twitter-api from here type $ npm install to install all of the project dependencies.

3. Step Three

Once completed run the following command to create our config file where we will put our Twitter API keys.

Unsure how to obtain Twitter API keys? Sign up here - Sign up Twitter API keys

$ npm run api-build

In your root dir open your config.js file and past your Twitter API Keys in.

4. Step Four

Back in our Terminal run npm start to start our server on localhost:3000.


Example && Demo of usage.

  1. Example if config.js file.
exports.config = {
        consumer_key: "xxxx",
        consumer_secret: "xxxxxxxx",
        access_token: "xxxx-xxxxxx",
        access_token_secret: "xxxxxxxxx",
        timeout_ms:           60*1000,  // optional HTTP request timeout to apply to all requests.
        strictSSL:            true,     // optional - requires SSL certificates to be valid.
}

Deployment

N/A at this time..


Built With

NodeJS - An asynchronous event driven JavaScript runtime, Node is designed to build scalable network applications.

Express - minimal and flexible Node.js web application framework that provides a robust set of features for web and mobile applications.


Authors


License

MIT

This project is licensed under the MIT License - see the LICENSE.md file for details.
Yay Free software!

About

Using Twitters API to interact with users profile in real-time.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published