Team Collaborators
- Alasdair Wem - https://github.com/wemsteral
- Tara Sankhalpara - https://github.com/tsankhalpara
- Frankie Bamgboye - https://github.com/FrankieBoye
- Michael Darmody - https://github.com/Michael-Darmody
- Sejin Kim - https://github.com/sejinkay
- Simon Chenbo Yi - https://github.com/SimonChenboYi
As User
So I can share my life with my friends
I want to be able sign up for an account with Acebook
As a User
So I am identifiable to Acebook
I want to use my personal email to sign up
As a User
So my friends know who I am
I want to give my name at sign up
As a User
So only I can access my account
I want to provide a personal password
As a User
So that I can access the content in Acebook
I want to able to be authenticated by logging in to my account;
As a User
So that I can log into my Acebook account
I want to be able to input my username and password on the homepage.
As a User
So i can confirm my login
I would like to receive an error message if I get my username or password incorrect
As a User
So that I can log into my Acebook account
I want to be able to go to my personal page after login.
As a User
So that I can see all my own posts and posts from other users
I would like to have my own wall
As a user
So that I can view other users walls
I would like to ba able to search them by /username
As a user
So that I can post on another users wall
I would like a posts form
As a user
So that I know a user exists
I would like a 404 error if their wall doesn't exist
As a User
I would like a form
so that I can add posts
As a User
I can click a delete button
so that i can delete my own posts
As a User
I can click an update button
so that i can update my own existing posts
Additional user stories:
As a User
I would like to see a pop up message
so that i know my post has been removed
As a User
I would like to see a pop up message
so that i know my post has been updated
REQUIRED INSTRUCTIONS:
- Fork this repository to
acebook-teamname
and customize the below**
You can find the engineering project outline here.
- The card wall is here: Trello
See CONTRIBUTING.md
First, clone this repository. Then:
> bundle install
> bin/rails db:create
> bin/rails db:migrate
> bundle exec rspec # Run the tests to ensure it works
> bin/rails server # Start the server at localhost:3000
We observed that the posts table had already been made (despite not having a user id column).
Create the migrate file:
$ bin/rails generate model Users email:string name:string password:string
Notes:
- We are used to using varchar for emails/passwords etc, but ‘string is the universal term for this datatype (we speculate).
- Timestamps ( created_at and updated_at) are created by default.
Run migrate to update the database:
$ bin/rails db:migrate
Note: we can’t manually change the /schema.rb file How to update existing table with foreign key guide:
Reference: Add a reference column migration in Rails 4 - Stack Overflow
Then,
$ bin/rails db:migrate ```