Giter VIP home page Giter VIP logo

entourage-ror's Introduction

Build Status Coverage Status

Prerequisites

Ruby 2.3.1 Rails 4.2.6

rbenv or rvm recommanded

Update API

aglio -i apiary.apib -o public/developer.html

Install aglio:

npm install -g aglio

Resolve dependencies and run server

$ gem install bundler
$ bundle install --without production
$ bundle exec rake db:migrate
$ bundle exec rails server

Rspec tests

Run tests with

$ rspec

Dredd tests

Test the API documentation compliance with Dredd

Install Dredd:

$ npm install -g dredd

Setup database for Dredd tests:

  • Reset DB to reset id sequence
  • Populate database with Dredd specific seeds (cf file ./db/seeds/dredd.rb)
$ rake db:reset dredd:seeds

rake dredd:seeds task description:

  • Removes all newsletter subscriptions
  • Removes all users
  • Generates the dredd user

Run Dredd:

$ rake dredd

Dredd config

Dredd options are listed in dredd.yml file

Guard

Guard Rspec (default)

Launch automatically tests with:

$ bundle exec guard

Guard Api blueprint

Launch automatically dredd and aglio (static documentation generation) with:

$ bundle exec guard -g apib

Redirection to app stores :

In order to redirect a mobile to the application from a SMS, we redirect toward a page on the website :

http://api.entourage.social/store_redirection

  • If you visit this page from an iOS device you will be redirected to the Appstore
  • If you visit this page from an Android device you will be redirected to the PlayStore

The logic and URL for the store can be found here : https://s3-eu-west-1.amazonaws.com/entourage-ressources/store_redirection.html

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.