Skip to content

mtejedorwolox/test-app

Repository files navigation

Poloniex Monitoring

Running local server

1- Installing Ruby

  • Clone the repository by running git clone [email protected]:mtejedorwolox/test-app.git
  • Go to the project root by running cd test-app
  • Download and install Rbenv.
  • Download and install Ruby-Build.
  • Install the appropriate Ruby version by running rbenv install [version] where version is the one located in .ruby-version

2- Installing Rails gems

  gem install bundler --no-ri --no-rdoc
  rbenv rehash
  • Install basic dependencies if you are using Ubuntu:
  sudo apt-get install build-essential libpq-dev nodejs
  • Install all the gems included in the project.
  bundle install

Database Setup

Run in terminal:

  sudo -u postgres psql
  CREATE ROLE "poloniex_monitoring" LOGIN CREATEDB PASSWORD 'poloniex_monitoring';

Log out from postgres and run:

  bundle exec rake db:create db:migrate

Your server is ready to run. You can do this by executing rails server and going to http://localhost:3000.

Deploy Guide

Heroku

If you want to deploy your app using Heroku you need to do the following:

  • Add the Heroku Git URL to your remotes
  • Push to heroku
	git remote add heroku-prod your-git-url
	git push heroku-prod your-branch:master

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push your branch (git push origin my-new-feature)
  5. Create a new Pull Request

About