A twitter clone that allows users to post messages to a public stream.
View peeps: ✅
As a... user
I want... to see peeps
So that... I can see what other people are saying
Add peeps: ✅
As a... user
I want... to post a peep
So that... I can let people know what I'm doing
Order peeps by chronological order: ✅
As a... user
I want... to see all peeps in reverse chronological order
So that... I can see what others are saying most recently
Display when a peep was created: ✅
As a... user
I want... to see the time at which it was made
So that... I can better appreciate the context of a peep
As a... user
I want... to sign up for Chitter
So that... I can post messages on Chitter as me
As a... user
I want... to log in to Chitter
So that... I can post messages on Chitter as me
Log out: ✅
As a... user
I want... to log out of Chitter
So that... someone can't post messages as me
Delete peeps: ✅
As a... user
I want... to delete my own peep
So that... I can remove a peep I'm no longer happy with
Update peeps: ✅
As a... user
I want... to update my own peep
So that... I can update a peep if I've made a typo
As a... user
I want... to comment on a peep
So that... I can interact with others users via their peeps
I used a trello board to track my progress with building the features for the user stories above. It's a public board if you want to take a look - https://trello.com/b/RnC9pnmw/chitter-sinatra. I also worked on each feature in a branch before merging the branch into main via a pull request. This was in order to replicate working in a development team and keep up the good development practices I've developed at Makers Academy.
- Clone this repo
- Run
bundle install
via your terminal - Set up your development database:
- Open postrges by entering
psql
in the terminal - Run the command
CREATE DATABASE chitter_sinatra;
to create the database - Connect to the database using the command
\c chitter_sinatra;
- Run the query saved in
01_create_peeps_table.sql
- Run the query saved in
02_create_users_table.sql
- Run the query saved in
03_add_column_peeps_table.sql
- Run the query saved in
04_create_comments_table.sql
- Run the query saved in
05_add_column_comments_table.sql
- Run the query saved in
06_add_column_comments_table.sql
- Open postrges by entering
- Set up your test database:
- Open postrges by entering
psql
in the terminal - Run the command
CREATE DATABASE chitter_sinatra_test;
to create the database - Connect to the database using the command
\c chitter_sinatra_test;
- Run the query saved in
01_create_peeps_table.sql
- Run the query saved in
02_create_users_table.sql
- Run the query saved in
03_add_column_peeps_table.sql
- Run the query saved in
04_create_comments_table.sql
- Run the query saved in
05_add_column_comments_table.sql
- Run the query saved in
06_add_column_comments_table.sql
- Open postrges by entering
- Start the server using
rackup
in the terminal - Visit your local host and start playing with the app!
- 41 unit and feature tests
- 99.81% test coverage
- 533 out 534 lines in 19 files covered
- To run the tests, navigate to the top level directory of your cloned repo and run
rspec
from the command line.