Using Twitter's API to store and manage information.
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.
What dependencies you need to install the software and how to install them as followed
-
NodeJS - As an asynchronous event driven JavaScript runtime, Node is designed to build scalable network applications.
- Learn more : https://nodejs.org/en/about/
-
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.
- Learn more : https://www.npmjs.com/get-npm
-
Express - Express is a minimal and flexible Node.js web application framework that provides a robust set of features for web and mobile applications
- Learn more : https://expressjs.com/
-
Twitter API - Publish and analyze Tweets, optimize ads, and create unique customer experiences.
- Learn more : https://developer.twitter.com/en.html
-
Twit API - Twitter API Client for node (REST & Streaming API).
- Learn more : https://github.com/ttezel/twit
-
pugJS - high-performance template engine heavily influenced by Haml and implemented with JavaScript for Node.js and browsers
- Learn more : https://pugjs.org/api/getting-started.html
-
Homebrew - Homebrew installs packages to their own directory and then symlinks their files into /usr/local.
- Learn more - https://brew.sh
- 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 thisv10.6.0
.
Now do the same for npm as followednpm -v
output will look something like this6.2.0
.
To learn more please visit - node & npm install.
A step by step series of examples that tell you how to get a development env running
In your project root dir ('./') use the following command in your terminal.
$ git clone https://github.com/brandonv98/twitter-api.git
Once you have cloned the repo $ cd/twitter-api
from here type $ npm install
to install all of the project dependencies.
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.
Back in our Terminal run npm start
to start our server on localhost:3000.
- 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.
}
N/A at this time..
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.
- Brandon VanCamp - WebSite
This project is licensed under the MIT License - see the LICENSE.md file for details.
Yay Free software!