A little Twitter clone that will allow the users to post messages to a public stream.
The sqlite3 database engine should be installed on your system.
$ 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.
$ rake help
or rake
Type the rackup
command from the command line in the directory of the app.
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.
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