Code Monkey home page Code Monkey logo

rbktn16-twittler's Introduction

Twittler

What's Already Here

This is a mostly-empty repo, with a file that creates some data that represents twitter users and their tweets. It's the data you would expect to see if you had created a twitter account and followed a few people. (More tweets appear over time.)

That file is called data_generator.js. You don't need to understand the code that's in it, but here's what it does:

  • Creates two global variables, users and streams.
    • users is an array of strings -- all the usernames that you're following.
    • streams is an object with two properties, users and home.
      • streams.home is an array of all tweets from all the users you're following.
      • streams.users is an object with properties for each user. streams.users.shawndrost has all of shawndrost's tweets.
  • Kicks off a periodic process that puts more data in streams.

You'll mostly be working in the javascript block of index.html. Note: The generated tweets will be displayed in reverse chronological order.

Basic Requirements:

  • Show the user new tweets somehow. (You can show them automatically as they're created, or create a button that displays new tweets.)
  • Display the timestamps of when the tweets were created.
  • Design your interface so that you want to look at and use the product you're making.
  • Allow the user to click on a username to see that user's timeline.

Extra credit:

  • Show when the tweets were created in a human-friendly way (eg "10 minutes ago"). You'll want to find and use a library for this.
  • Allow the user to tweet. (This is going to require you to understand a little more about data_generator.js, but you shouldn't need to modify anything.)

rbktn16-twittler's People

Contributors

mellah-kais 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.