Skip to content

Latest commit

 

History

History
50 lines (36 loc) · 2.07 KB

README.md

File metadata and controls

50 lines (36 loc) · 2.07 KB

Chitter

A little Twitter clone that will allow the users to post messages to a public stream.

Prerequisites

The sqlite3 database engine should be installed on your system.

Getting started:

To get started with Bookmark Manager:
$ git clone https://github.com/meta-morpho-sys/new_chitter
$ cd new_chitter
$ bundle install
$ rake db::create
$ bundle exec rspec

This will give you the application, and set up two databases: new_chitter for the development environment, and new_chitter_test for the test environment.

To display all existing tasks for the database

$ rake help or rake

To launch and interact with the app in the browser:

Type the rackup command from the command line in the directory of the app.

App security

Specify your session secret key as the environmental variable SESSION_SECRET. If you don't specify this, the app will generate it's own 20 character SecureRandom secret.

Technologies used

App:

  • BCrypt - Security algorithm for hashing passwords.
  • Rake - Task management and build automation tool.
  • Sequel - A simple, flexible, and powerful SQL database access toolkit for Ruby.
  • Sinatra - Quick tool for creating web applications.
  • sqlite3 - A self-contained, embedded, full-featured, SQL database engine.

Testing:

  • Capybara - Simulator of how a user interacts with the app.
  • orderly - for asserting that some text (this) appears before other text (that) in rspec request specs
  • rspec_sequel_matchers - A set of matchers for testing of Sequel gem validations.
  • RSpec - Behaviour Driven Development for Ruby.
  • timecop - A gem for testing time-dependent code