Skip to content

Twitter clone that demonstrates following/followers and per-user activity feeds

Notifications You must be signed in to change notification settings

trevorturk/tweets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

== Tweets
Experimental Twitter clone with Postgres and (soon) CouchDB...

== Stats

$ rake stats 5/29/09
+----------------------+-------+-------+---------+---------+-----+-------+
| Name                 | Lines |   LOC | Classes | Methods | M/C | LOC/M |
+----------------------+-------+-------+---------+---------+-----+-------+
| Controllers          |    25 |    18 |       3 |       2 |   0 |     7 |
| Helpers              |     2 |     2 |       0 |       0 |   0 |     0 |
| Models               |    95 |    68 |       4 |       8 |   2 |     6 |
| Libraries            |    37 |    21 |       0 |       6 |   0 |     1 |
| Integration tests    |     0 |     0 |       0 |       0 |   0 |     0 |
| Functional tests     |    31 |    24 |       2 |       0 |   0 |     0 |
| Unit tests           |   241 |   204 |       4 |       0 |   0 |     0 |
+----------------------+-------+-------+---------+---------+-----+-------+
| Total                |   431 |   337 |      13 |      16 |   1 |    19 |
+----------------------+-------+-------+---------+---------+-----+-------+
  Code LOC: 109     Test LOC: 228     Code to Test Ratio: 1:2.1

== Installation

cp config/database.example.yml config/database.yml
cp config/config.example.yml config/config.yml
rake db:create
rake db:schema:load
script/server
fail/whale

== NOTES

This is simple ActiveRecord implementation of a semi-scalable Twitter-like following/feed system.
Postgres work is in master branch now, saved in "pg" branch. 
Waiting for Zach's work with CouchDB, but might use pg system on Heroku for smaller projects.
Zach's fork: http://github.com/zdzolton/tweets/tree/master

== TODO

when following is created, populate feed for follower with items from followed user
when following is destroyed, remove feed items for unfollower that were created by formerly followed user
database indexes
front end for tweeting, following, unfollowing
user login validations a la twitter (alphanumeric, 15 chars or less, etc)
h escaping of users/tweets on front end
proper user/login system

== MIT LICENSE

Copyright (c) 2009 Timelines, Inc.

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

About

Twitter clone that demonstrates following/followers and per-user activity feeds

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages