Create a clone of a well-known social media platform using Rails.
$ git clone [email protected]:LazySamir/acebook-eaglewithtophat.git
$ cd acebook-eaglewithtophat
$ bundle
$ rake db:drop db:create db:migrate
$ rails server
- go to localhost:3000/posts
- click 'New post' link
- enter message body in the text box and press submit
- see all current posts in chronological order
As a user
So I can created an account
I want to be able to signup
As a user
So I can access my account
I want to be able to login
As a user
So I can express myself
I want to be able to create posts
As a user
So I can express agreement with someone else's post
I want to be able to like posts
As a user
So I can see when someone created a post
Posts will show when they are created
As a user
So I can see latest posts
Posts will display with newest first
As a user
So I can spare my blushes
I can delete my own posts
As a user
So I can fix typos
I can update my post upto 10 mins after it's created.
As a user
So I can be sure likes haven't be gamed
Users can only like a post once.
As a user
So I can create a conversation
I want to be able to comment on posts
+--------------------------------------------+
| Comments |
+--------------------------------------------+
| id | user_id | post_id | body | created_on |
+----+---------+---------+------+------------+
+--------------------------------------------+
| Users |
+--------------------------------------------+
| id | handle | full_name | email | password |
+----+--------+-----------+-------+----------+
+-----------------------------------------------+
| Posts |
+-----------------------------------------------+
| id | user_id | body | created_on | updated_on |
+----+---------+------+------------+------------+
+------------------------+
| Liked_posts |
+------------------------+
| id | post_id | user_id |
+----+---------+---------+