Setup Stride Smart client
Examples below are for Caixeiros client
Backend
Auth API
Add client:
lib/tasks/clients/caixeiros.rb, copy content from other client file and adjust config, change module name, consts. Set uuid as random value (SecureRandom.uuid)
Edit production (and other envs: develop, development) credentials, copy some existing and adjust. For source_keys generate new for each web/mobile and for each env: SecureRandom.hex
After deploy: on all envs instances (development, tisa develop, tisa develop 1-3, tisa prod etc.):
rails client:create['caixeiros']
bundle exec rake role:create
create moderator(s) in rails c (support account, support account eg. support+caixeiros@tisagroup.ch, and others)
Media Library API
Edit credentials develop, development, production, etc:
add caixeiros: &caixeiros, and 9d76b5dc-b3b7-4018-abc3-218fe12fb941: *caixeiros at the end of file. Use client id from Auth API client.uuid
Umpire API
IMPORTANT! Before deploy edit and push helm
umpire-sidekiq, add new client name toSIDEKIQ_CLIENTS_LIST
Create config/sidekiq/caixeiros.yml (copy content from other client file and adjust), use client_identifier as the same as background_job_identifier from Auth API credentials (upcased - not necessary, but to keep consistency)
On server, in rails c:
- adjust
client_idsvariable fromscripts/global_page_elements_create.rbcopy and run code in console - open
lib/tasks/component_types.rake, adjustclient_ids = ["9d76b5dc-b3b7-4018-abc3-218fe12fb941"]copy and run code in console - create publication category:
PublicationCategory.create(name: 'All', client_id: 'c689452e-957b-4e08-9daa-2fd723238f0e')