Giter Site home page Giter Site logo

twitter's Introduction

README

Twitter Example

How do I get set up?

Install Node Server

running v6.11.1

Clone Repository

git clone https://github.com/richhuth/twitter.git

npm install

npm install

Run project

npm start

users.js

By looking at the user.txt, not all users had followers. So in order to create a list of users I had to retrieve all the initial users and their followers. This created an array of users which I then removed all the duplicates to create a unique list of users. My assumption here was that each username was unique.

follower.js

This created a map of followers from the user.txt file. I thought it would be best to keep this list as as separate data set.

tweets.js

This created a map of the users tweets which we are able to search through

app.js

This is the main function file where I gathered all the data I needed and rendered the output to console as per assignment request.

Comments

From the data that was provided, I thought the best approach would be to get the data into a readable arrays. Once that was achieved I was able to create the functions to display the data as per example. From the error checking side of things, I would would make sure that the data goes in correctly from the front end. The current error handling is on the tweets themselves but this would create a promise block. So another approach would be not to show those tweets but again this should come from a data input side of things.

twitter's People

Watchers

James Cloos avatar Richard Huth avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.