Skip to content

Latest commit

 

History

History
50 lines (39 loc) · 1.23 KB

File metadata and controls

50 lines (39 loc) · 1.23 KB

Demo SCA Provider written using Sinatra fremework

Run project locally

Setup

Generate RSA key pair and place public and private keys into config folder. Make sure to use correct paths to pem keys in the SettingsHelper module.

cp config/application.example.yml config/application.yml
cp config/database.example.yml config/database.yml
cp config/sidekiq.example.yml config/sidekiq.yml
  bundle install
  rake db:create db:migrate

launch redis

redis-server

launch sidekiq

bundle exec sidekiq -r ./app.rb

Next steps

  1. Start ngrok on 4567 port:
  • ngrok http 4567
  1. Set ngrok url as service_url in application.yml
  2. In application.yml set host: localhost for redis and sidekiq
  3. In application.yml set your provider id as provider_id
  4. Run project:
  • rackup config.ru

Run project using Docker

  1. Run ngrok listening on 0.0.0.0:4567
  • ngrok http 0.0.0.0:4567
  1. Copy ngrok url and paste it as service_url in application.example.yml
  2. In application.example.yml set host: redis for redis and sidekiq
  3. In application.yml set your provider id as provider_id
  4. Build docker services:
  • docker-compose build
  1. Run docker:
  • docker-compose up