Giter VIP home page Giter VIP logo

gram2_api_server's Introduction

GrAM v2 API Server

Build Status Code Climate Test Coverage

Description

TODO

Environment

Ruby : > 2 (tested with 2.2.1p85)

###Dependencies

RabbitMQ

You can setup a local rabbitMQ instance with docker and default configuration

docker run  --name gram-rabbitmq -p 5672:5672 rabbitmq

Configuration

Create secrets.yml, database.yml and optionally rabbitmq.yml from the templates files in config dir. The rabbitmq template contains the default configuration for a local rabbitMQ server setup with docker.

Database initialization

For development :

RAILS_ENV=development rake db:migrate:reset
RAILS_ENV=development rake db:seed

For production :

RAILS_ENV=production rake db:migrate:reset
RAILS_ENV=production rake db:seed

Environment variables :

  • RABBITMQ_SENDER_ID : Sender id. "gram" if not defined
  • RABBITMQ_HOST
  • RABBITMQ_PORT
  • RABBITMQ_VHOST
  • RABBITMQ_USER
  • RABBITMQ_PASSWORD
  • RABBITMQ_EXCHANGE : "agoram_event_exchange" if not defined

Your can override these variables if you configure confi/rabbitmq.yml

Test

Prepare test MasterData with :

RAILS_ENV=test rake db:migrate

Rspec :

rspec --format doc

Test from RAML :

rake spec:vigia

Deployment instructions

TODO

gram2_api_server's People

Contributors

arcadio-fr avatar blaked84 avatar matgou avatar zooip avatar

Watchers

 avatar  avatar  avatar

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.