Skip to content
This repository was archived by the owner on Dec 5, 2018. It is now read-only.

yaselc/rails-challenge

Repository files navigation

Rails Challenge

This project is intended to test basic skills in Rails framework and good practices in programming.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

  • Rails >= 5.0.2
  • PostgreSQL >= 9.5.6

Installing

  1. Clone the repository
git clone git@github.com:yaselc/rails-challenge.git
  1. Set environment variables
$> cd rails-challenge
$> cp example.env .env
$> nano .env

and set all environment variables in .env file

  1. Create database, run migrations and load initial data
$> bin/rake db:create
$> bin/rake db:migrate
$> bin/rake db:seed
  1. Install dependencies
$> bundle install
  1. Now you are set to run the server
$> bin/rails server

Running the tests

Start server for test environment

$> bin/rails server -e test

In another terminal, run tests

$> bin/rake

Testing online

WebService1 and WebService2 documentation

You can check Swagger documentation for both webservice included in project. Also the source code to build a gem that serve as Client for this REST services can be download from this documentation page.

  • WebService1 - Proxy REST service to verify user email
  • WebService2 - Backend REST service to verify user email

Deployment

Check documentation to deploy to Heruko

Authors

  • Yasel Couce

License

This project is licensed under the GNU GENERAL PUBLIC License - see the LICENSE file for details

About

Project demo to test skills on rails framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published