Skip to content

Setting up the development environmet

Manuel Lorenzo edited this page Oct 3, 2018 · 7 revisions

Installing Ruby on Rails

Please, follow along the instructions for yor OS (INSTALL POSTGRESQL)

https://gorails.com/setup/

Cloning the repo locally

Create a fork of this repo and clone it into your PC: git clone https://github.com/your_user/ConexionFelina.git

Installing bundled gems

Run bundle install inside the 'ConexionFelina' app directory.

First run

  1. rails db:create
  2. rails db:migrate
  3. rails db:seed

If you want to migrate and populate the test database too you should add RAILS_ENV=TESTat the end of the 2º and 3º commands and execute them.

rails s

Configuring postgresql on linux (ubuntu)

1º) Run sudo -u postgres createuser --interactive

    Use as username your OS account name
    Type "y" to be superuser

2º) Run sudo -u [your OS account name] createdb conexion_felina_test

Configuring postgreSQL on Mac OS

  1. createuser -s -r postgres