vital-edu/sala-de-espera

View on GitHub
README.md

Summary

Maintainability
Test Coverage
[![Code Climate](https://codeclimate.com/github/vital-edu/sala-de-espera/badges/gpa.svg)](https://codeclimate.com/github/vital-edu/sala-de-espera) [![Test Coverage](https://codeclimate.com/github/vital-edu/sala-de-espera/badges/coverage.svg)](https://codeclimate.com/github/vital-edu/sala-de-espera/coverage) [![Build Status](https://travis-ci.org/vital-edu/sala-de-espera.svg?branch=master)](https://travis-ci.org/vital-edu/sala-de-espera)

Sala de Espera (Waiting Room)
=============================

E-Commerce specific to sell services in the context of a Brazilian Beauty Salon.

In the [Wiki](/vital-edu/sala-de-espera/wiki) of this repository are all the artifacts produced using the [AUP](http://www.ambysoft.com/unifiedprocess/agileUP.html) (Agile Unified Process). Unfortunately the artifacts were wrote in Brazilian Portugues and were not translated to english.

Dependencies
============

-    Ruby v2.3.1 (It is recommend to use RVM)
-    Rails v5.0.0.1
-    PostgreSQL
-    Node.js

Configurations
==============

```
$ gem install bundler
$ bundler
$ rails db:create db:setup
$ rails start
```

### Environment Variables

This application needs the environment variables listed below:

| Environment | Name                             | Description                           |
|-------------|----------------------------------|---------------------------------------|
| All         | CLOUDINARY_KEY                   | [Cloudinary](https://cloudinary.com/) |
| All         | CLOUDINARY_NAME                  | [Cloudinary](https://cloudinary.com/) |
| All         | CLOUDINARY_SECRET                | [Cloudinary](https://cloudinary.com/) |
| Development | DEVELOPMENT_SECRET_KEY_BASE      | Generated by *rails secret*           |
| Development | SALA-DE-ESPERA_DATABASE_PASSWORD | PostgreSQL Password                   |
| Production  | MAILGUN_DOMAIN                   | [Mailgun](mailgun.com/)               |
| Production  | MAILGUN_SMTP_LOGIN               | [Mailgun](mailgun.com/)               |
| Production  | MAILGUN_SMTP_PASSWORD            | [Mailgun](mailgun.com/)               |
| Production  | SECRET_KEY_BASE                  | Generated by *rails secret*           |
| Test        | TEST_SECRET_KEY_BASE             | Generated by *rails secret*           |

Running Tests
=============

```
$ rspec
```

The coverage results it is generated automatically after running the tests and stored at **coverage/**