Git Product home page Git Product logo

tc_twitter's Introduction

About

This is a very basic Twitter clone written using Rails and React. I used Devise to save time for user sign-in, but I avoided using any other fancy libraries.

Setting up

Clone the repo and run rake db:create db:migrate. You can then run rake db:create_dev_data to populate the database with a bunch of test users with (nonsensical) tweets. This command will also supply you with an email and password with which to log in as one of these test users.

Once you've done this, run rails s and head to localhost:3000.

What features are available?

You can view Tweets (with hashtag support), create Tweets (once you've logged in), delete your own tweets, look at the tweets of specific users and search for tweets. Much like actual Twitter, you can search for tweets from specific users using the from:@username command. For example, hello from:@bob will search for tweets from @bob containing the word "hello."

Running tests

Navigate to the root directory and just enter rspec.

Improvements

I ran into the requested timebox limit of 4 hours and subsequently wasn't able to provide good JS test coverage or focus on CSS (the style is almost completely bare-bones, currently). If you'd like me to go forward and fill these missing pieces in some more, I can do so.

tc_twitter's People

Contributors

mg50 avatar

Watchers

James Cloos avatar  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.