Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
bin
 
 
 
 
db
 
 
lib
 
 
log
 
 
 
 
 
 
 
 
tmp
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Scriptmanage Services Boilerplate

Clone this repo to generate a new rails app preconfigured for easy Samanage integration development.

Architecture

  • Rails 6
  • Postgres
  • Devise
  • Resque
  • Redis
  • React
  • AWS (S3 file storage)
  • RSpec

Features

  • Autogenerate new integration services boilerplate with tests
  • React Frontend hooks into services
  • Create react forms based on rails FormField class
  • Can run in 'backend only' mode with only scheduled tasks via rake service:run Most features are optional and only added when used.

Adding a service

Generate new service with rails g service <name> This will copy service and test templates to lib/pservices/ spec/pservices/

Run in Development with: foreman start -f Procfile.dev Run tests with bundle exec guard

Deploying to heroku

Set all required environment keys in config/initializers/figaro.rb If keys are saved locally in config/application.yml (do not commit this file) they can be published with: figaro heroku:set -e production

config/application.yml

test:
  REDIS_URL: redis://localhost:6379
  ACCOUNT_TOKEN: 'Test-API-Token'
development:
  REDIS_URL: redis://localhost:6379
  ACCOUNT_TOKEN: 'Dev-API-Token'
production:
  ACCOUNT_TOKEN: 'Ultra-Secret-API-Token'
  ## Configure other Environment variables (heroku will overrule this file)

When developing locally rename the Rails application module name. Resque namespace in Redis will be prefixed by Rails.application.class.parent_name

About

Ruby on Rails boierplate for Solarwinds ITSM interfaces

Topics

Resources

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.