Skip to content

ProyectoIntegrador2018/repo-io

Repository files navigation

Repo I/O

Web platform used to review and display in an elegant form the contributions done to a Github repository.

Demo

https://youtu.be/zbuAqPNC_bs

Table of contents

Client Details

Name Email Role
Abraham Kuri Vargas [email protected] Profesor

Environment URLS

  • Production - Site
  • Development - localhost:3000

Equipos de desarrollo

Argentum - ENE - MAY 2019

Name Email Role
Oscar Michel Herrera [email protected] Development
Edgar Daniel Bustillos Rivera [email protected] Development
Daniel Zavala Salazar [email protected] Scrum Master
Miguel Angel Alvarado López [email protected] Product Owner

Management tools

You should ask for access to this tools if you don't have it already:

Development

Windows

Linux

  • RVM
    $ curl -sSL https://get.rvm.io | bash -s stable
  • Ruby – Version 2.6.1
    $ rvm use ruby-2.6.1 --default
  • Rails – Version 5.2.2.1
    $ gem install rails -v 5.2.2.1

Setup the project for development

We will use the basic tools that come with rails. (rails server, test, and coonsole).

  1. Clone this repository into your local machine
$ git clone https://github.com/OscarMichelH/repo-io.git
  1. Install dependencies:
$ bundle install
  1. Setup the database:
$ rails db:drop
$ rails db:create
$ rails db:migrate
$ rails db:seed

If you are using a Mac for development with stardard configuration, first run these commands:

$ sudo mkdir /var/pgsql_socket/
$ sudo ln -s /private/tmp/.s.PGSQL.5432 /var/pgsql_socket/

Note: If it is your first time running Rails + PostgreSQL, first create the database with rails db:create

  1. Start the application:
$ rails s

Once you see an output like this:

=> Booting Puma
=> Rails 5.2.2.1 application starting in development
=> Run `rails server -h` for more startup options
*** SIGUSR2 not implemented, signal based restart unavailable!
*** SIGUSR1 not implemented, signal based restart unavailable!
*** SIGHUP not implemented, signal based logs reopening unavailable!
Puma starting in single mode...
* Version 3.12.0 (ruby 2.6.1-p33), codename: Llamas in Pajamas
* Min threads: 5, max threads: 5
* Environment: development
* Listening on tcp://0.0.0.0:3000
Use Ctrl-C to stop

This means the project is up and running.

Stop the project

In order to stop the project just hit Ctrl-C on the terminal where rails server is running.

Developer Settings

Execute

bundle exec figaro install

This will generate the file config/application.yml

  • Add here secret keys

Running tests

To run all tests, you can do:

$ rspec