= Bjönd API A rubygem wrapper for the Bjönd API. This gem also contains an engine with endpoints that are made to interface with Bjond server-core. == Installation gem install 'bjond-api' For specific version info visit the gem page[https://rubygems.org/gems/bjond-api]. == Creating a Bjond Integration App To create a Bjond App using the Ruby on Rails framework, perform the following actions within your Rails application. (1) Add the following line to your Gemfile - gem 'bjond-api' (2) Install it with - bundle install (3) Migrate your Database To install necessary migrations, add this to your Rails' application.rb file - rake bjond_api_engine:install:migrations (4) At this point, you can run the migrations as usual using - rake db:migrate (5) Generate Configuration Files To get you started, generate a config file by running the following command: rails g initializer This will automatically do two things: - (5a) Copy a baseline bower.json file in to the root of your app. If you already have a bower.json file, you can skip this file when prompted. Instead, you can copy the dependencies over manually. At the time of this writing, the most import client side library is angular.js. Once the bower.json file is in your environment, run - bower install In application.js, include scripts using - //= require bjond-api Also, remove references to turbolinks. From your angular app, include our module as a dependency - angular.module('your-app',['bjond-api']); From application.css, require the core css: *= require 'bjond_registrations' - (5b) The generator will also create a root config create a config file that will initialize important variables for the Bjond-App gem. This will be copied into your app at: config/initializers/bjond-api-initializer.rb (6) The angular / css can be loaded by using the following code in the application.html.erb: