- 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]
whereversion
is the one located in .ruby-version
- Install Bundler.
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
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.
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
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push your branch (
git push origin my-new-feature
) - Create a new Pull Request