This is a small Twitter clone that will allow the users to post messages to a public stream.
Ruby with Sinatra web framework, and PostgreSQL database. Tested using Rspec, and Capybara DSLs with Rubocop and Simplecov.
As a Maker
So that I can let people know what I am doing
I want to post a message (peep) to chitter
As a maker
So that I can see what others are saying
I want to see all peeps in reverse chronological order
As a Maker
So that I can better appreciate the context of a peep
I want to see the time at which it was made
As a Maker
So that I can post messages on Chitter as me
I want to sign up for Chitter
As a Maker
So that only I can post messages on Chitter as me
I want to log in to Chitter
As a Maker
So that I can avoid others posting messages on Chitter as me
I want to log out of Chitter
- Fork and clone this repo
- Run
bundle
- Create databases
- Open psql.
- Create databases chitter_chatter and chitter_chatter_test
- Connect to your chitter database using the command
\c chitter_chatter
- Run the query we have saved in the file '02_create_peeps_table.sql'
- Run the query we have saved in the file '03_add_time_column_on_peeps_table.sql'
- Run the query we have saved in the file '04_create_users_table.sql'
- Run the query we have saved in the file '05_add_column_user_id_to_peeps_table.sql'
- Create a test database using the psql command
CREATE DATABASE chitter_chatter_test;
- Repeat steps 3 and 6 for the test database.
- rackup -p 3000