- Clone this repo
git clone git@github.com:Sindex42/chitter-challenge.git
- Change directory
cd chitter-challenge
- Run bundle to install dependencies
bundle
- Install postgresql
brew install postgres
- Create the test database
createdb chitter_test;
- Set up the test environment tables
rake db:auto_migrate RACK_ENV=test
- Run the tests with
rspec
in the project root folder
- Create the development database
createdb chitter_development;
- Set up the development environment tables
rake db:auto_migrate
- Run rackup to start the server
rackup
- Open up a browser and navigate to the following page http://localhost:9292
Users can see peeps but cannot submit any without signing up first.
- Navigate to the index page
- Click on the 'Sign Up' link
- Fill in your details and hit 'Submit'
- Navigate to the index page
- Enter your message in the prompted field and click 'Submit'
- Repeat as neccessary
Tech | Description |
---|---|
capybara | Test framework for web development |
data_mapper | Ruby ORM |
database_cleaner | Used for cleaning databases before and after every test |
dm-postgres-adapter | postgresql adapter for data_mapper |
sinatra | DSL for creating web applications in ruby |
sinatra-flash | Used for showing error messages (e.g. for email and username uniqueness validation) |
orderly | Rspec matcher for asserting that this appears_before(that) in rspec request specs |
postgresql | Object-relational database management system |
STRAIGHT 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
HARDER
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
ADVANCED
As a Maker
So that I can stay constantly tapped in to the shouty box of Chitter
I want to receive an email if I am tagged in a Peep
- You don't have to be logged in to see the peeps.
- Makers sign up to chitter with their email, password, name and a username (e.g. samm@makersacademy.com, password123, Sam Morgan, sjmog).
- The username and email are unique.
- Peeps (posts to chitter) have the name of the maker and their user handle.
- Your README should indicate the technologies used, and give instructions on how to install and run the tests.