Share your contacts and meet new people!
In Contacts Directory you can add and delete contacts and receive notifications when others do the same!
- 12-May-2016
- Ruby: 2.2.0-p0
- Rails: 4.2.4
You can access this application on it's heroku site: Contacts Directory!
Contacts Directory uses:
- MySQL Database
- Redis (3.3.0) (install with homebrew using
brew install redis
) - MailCatcher (0.6.4) for local mail catching (install with
gem install mailcatcher
)
Prepare the project and create some seed records with:
- Clone the repository.
bundle install
on app directory.bundle exec rake db:create
on app directory.bundle exec rake db:migrate
on app directory.bundle exec rake db:seed
on app directory.
To run test, prepare test database and execute with:
bundle exec rake db:create RAILS_ENV=test
on app directory.bundle exec rake db:test:prepare
on app directory.bundle exec rake test
on app directory.
Open a command line terminal for each of the following items and execute the instruction:
- Start Redis server with
redis-server
(will start on tolocalhost:6379
by default). - Start MailCatcher with
mailcatcher
(will start on tolocalhost:1080
by default). - Start Resque background queue that will handle email notifications delivery with
QUEUE=* rake environment resque:work
. - Start Rails server with on app directory
rails s
(will start onlocalhost:3000
by default).
Go to localhost:3000
to start using the app!