Skip to content

An Express and Pug application that uses Twitter's REST API to access information from a Twitter account and renders it to the user.

Notifications You must be signed in to change notification settings

LeeVaughn/twitter-interface

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twitter Interface

A Node.js application that uses Express and Pug along with Twitter's REST API to access data for a Twitter account and renders it to the local host.

Motivation

This project was created as a part of the Treehouse Full Stack JavaScript Techdegree program.

Features

  • Accesses information on a Twitter account using Twitter's REST API
  • Automatically authenticates access to a Twitter profile
  • Displays recent tweets, recent friends, and recent direct messages
  • Allows user to send tweets
  • Displays user friendly error page if a page doesn't exist
  • Running npm install installs relevant dependencies

To Run

  • Download project files by running git clone https://github.com/LeeVaughn/twitter-interface
  • Navigate to the project folder
  • Install dependencies with npm install
  • You will need to create your own config.js file using this format:
const T = {
  consumer_key: "...",
  consumer_secret: "...",
  access_token: "...",
  access_token_secret: "...",
  timeout_ms: 60 * 1000, // optional HTTP request timeout to apply to all requests.
  strictSSL: true, // optional - requires SSL certificates to be valid.
};

module.exports = T;
  • The config.js file should be saved in the same directory as app.js
  • Type npm start or node app.js to run application (application runs on localhost:3000)

Dependencies

  • express Fast, unopinionated, minimalist web framework for node
  • pug A clean, whitespace-sensitive template language for writing HTML
  • Twit Twitter API Client for node
  • body-parser Node.js body parsing middleware
  • date-fns Modern JavaScript date utility library

Built With

API

Future Improvements

  • Deploy on Heroku
  • Consider integrating the Twitter's Streaming API

Links

Author

Daniel Lee Vaughn

About

An Express and Pug application that uses Twitter's REST API to access information from a Twitter account and renders it to the user.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published