/domochat

A work in progress project to experiment with Ruby on Rails features during 3-month #tceh Ruby course.

Primary LanguageRuby

README

To run this application, remember to do the following (instructions given for Mac OS):

  • For Mac OS: install Redis: brew install redis

  • For Win: install Redis from: https://github.com/MSOpenTech/redis/releases. Reload the computer. Redis server will start automaticly

  • Run Redis server (for Mac OS): /usr/local/bin/redis-server (in a separate terminal window)

  • Launch Sidekiq for async jobs in a separate terminal window: bundle exec sidekiq

  • Launch Crono service in a separate terminal window in your Rails project root directory: crono (or bundle exec crono)

  • Run command 'rake db:seed' to create categories for posts.

  • Run command 'rake poll:set' to set poll states.

  • In a separate terminal window start Rails server: rails s

Also, you have to have PostgresQL installed and running (use PostgresApp and PGAdmin apps). The database configuration is located in config/database.yml. Here is an example of the :development config lines for PostgresQL:

development:
  <<: *default
  database: dc
  username: <your_user_name>
  password: <your_password>
  host: <%= ENV['IP'] %>

In case of SSL certificate problem during your authentication thru Facebook look for solution here: 'https://gist.github.com/fnichol/867550'.