/Coordinate

My graduation work on Ruby on Rails

Primary LanguageRubyGNU General Public License v2.0GPL-2.0

About

Coordinate - a non-profit, and free product, with a number of registered trade marks and free libraries.

Coordinate will allow you to monitor the location of your vehicle, view tracks, and detailed statistics. I tried to make service, as comfortable as possible for the end user, while not forgetting about the safety of the system as a whole.

The project is developing, and your opinions and suggestions are important to me. You can send them to me via any appropriate form on the site of the project or by e-mail.

Thank you for your attention!

How to deploy?

  • Сlone a repository git clone git@github.com:Melancholic/Coordinate.git

  • Perform installation required gems bundle

  • Configure config/database.yml for every environment. Example:

    production:
    adapter: postgresql
    host: [HOST]
    username: [USER_NAME]
    database: [DATA_BASE]
    password: [PASSWORD]
  • Configure config/initializers/setup_mail.rb. Example:

    ActionMailer::Base.delivery_method = :smtp
    ActionMailer::Base.smtp_settings = { 
      :address => "smtp.yandex.ru",
      :port => 587,
      :domain => [DOMAIN],
      :user_name => [USER_NAME],
      :password => [PASSWORD],
      :authentication => "plain",
      :enable_starttls_auto => true
    }
    
  • Configure config/local_env.yml. Example:

    RAILS_LOG_PATH_PROD: 'production.log'
    RAILS_LOG_PATH_DEV: 'development.log'
    RAILS_LOG_PATH_TEST: 'test.log'
    TRACKER_APP_DOWNLOAD_URL: 'https://example.com'
  • Generate files asset for production environments rake assets:precompile

Hint

  • Clean all assets

    rake assets:clean
    rake assets:clobber
    
  • Update images:

    rake paperclip:refresh CLASS=Image
    rake paperclip:refresh:missing_styles
  • Export your *.yml locales to JS

    rake i18n:js:export