This web application is a Twitter clone that allows users to post messages, known as peeps, to a public stream.
Entity relationship diagram:
A user can accomplish the following:
- Post a message (peep) to Chitter
- See all peeps in reverse chronological order
- See the time at which a peep was made
- Sign up to Chitter with a username and password
- Log into Chitter
- Log out of Chitter
- 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. [email protected], password123, Sam Morgan, sjmog).
- The username and email are unique.
- Peeps (posts to chitter) have the name of the maker and their user handle.
To run this on your computer, complete the following steps:
- Fork this repository, and clone it to your local machine
- If you do not have bundle installed already, run the command ‘gem install bundle’
- When the installation completes, run bundle
This project requires a database to be set up in postgresql. To do this, complete the following steps:
- Download postgresql
- Open postgresql in your terminal with the following command: psql
- Type in the following to create a database called chitter_manager "CREATE DATABASE chitter_manager;"
- Copy and paste the commands in the file '/db/migrations/01_peeps_table.sql' and '/db/migrations/02_user_table.sql' to create the tables.
To run tests, complete the following steps
- Open your terminal and make sure you are in the main folder 'chitter-challenge'.
- Type the command ‘rspec’ in the terminal to run all tests.
If you would like to contribute to this project, you can follow the instructions below
- Clone this repository to your local computer
- Create a new branch: $ git checkout https://github.com/hiboabd/chitter_challenge -b name_for_new_branch.
- Make changes and test
- Submit Pull Request with comprehensive description of changes
You could implement the following:
- Enabling the user to post peeps as themselves.
- Receive an email if they are tagged in a peep.
- Work on the CSS to make it look good.