AppManager

Welcome to your new gem! An API wrapper of Hulkapps.com AppManager portal.

Installation

Step 1) Run this command to your rails project root (Please replace ACCESS_TOKEN_GITHUB from your github token to access this repo) :

bundle config --local GITHUB__COM x___access___token:ACCESS_TOKEN_GITHUB

Step 2) Add this line to your application's Gemfile:

gem 'app_manager', git: "https://github.com/HulkApps/app-manager-sdk-ruby.git"

Step 3) And then execute:

bundle install


rails g app_manager:install

this install command will mount routes in your rails route.

Step 4) You must have to set ENV variable with key 'ACCESS_TOKEN_APP_MANAGER_PORTAL' in your application.yml or .env file like this:

APP_MANAGER_ACCESS_TOKEN: 'XXXXXXXXXXXXXXXXXXX'

Usage

As a helper:

Then, initialize app_manager instance like with App Manager Portal access:

ob = AppManager::Client.new('ACCESS_TOKEN_APP_MANAGER_PORTAL')

To get banners use this command:

ob.get_banners

For Vue UI Library in Rails Project:

Please make sure you have following line in your route file otherwise add this manually.

mount AppManager::Engine, at: "/"

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake test to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and the created tag, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/app_manager. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.

Code of Conduct

Everyone interacting in the AppManager project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.