Write a small Twitter clone that will allow the users to post messages to a public stream.
- Post a peep (message)
- Peeps are shown in reverse chronological order
- Peeps have a timestamp
- Chitter sign-up
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
rubysinatracapybararspecpostgresqlpg
- Fork this repo and
git cloneit to your local system. - Use
Homebrew(or your prefered package manager) to install and manage packages. brew install bundler- Run
bundle installto install the required 'gems' from the Gemfile. brew install postgres- Follow post installation instructions.
brew service start postgresql- Create
chitterandchitter_testdatabases usingpsqlCREATE DATABASE chitter;CREATE DATABASE chitter_web;
- Create tables in each database using the
psqlsequences indb/migrations
$ psql postgres
postgres=#
postgres=# \l- List all database tablespostgres=# \q- Quitpsql
- Run
rackupto start a local server:
$ rackup
- Use
localhost:XXXX/peepswith 4-digit port number to view chitter homepage.
- Run
rspecfrom the projects root directory.
Please ensure you have the following AT THE TOP of your spec_helper.rb in order to have test coverage stats generated on your pull request:
require 'simplecov'
require 'simplecov-console'
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
SimpleCov::Formatter::Console,
# Want a nice code coverage website? Uncomment this next line!
# SimpleCov::Formatter::HTMLFormatter
])
SimpleCov.start
