HUB
Sign inSign up

kloudio/integrations

By kloudio

•Updated about 4 years ago

Kloudio Integrations Server

Image
0

2.9K

kloudio/integrations repository overview

⁠How to start locally

  1. run yarn or npm install to install required node modules
  2. On mac-machine create a .bash_profile at root app-directory with correct credentials.
  3. Run yarn dev to start the application
  4. On browser/postman open http://localhost:8082/status You will see message saying ok
  5. On browser/postman open http://localhost:8082/env You will see some usefull information

Image description

⁠Style Guide

⁠Routes

Parameters will use kebab-case and paths will use snake-case

Kebab case: hello-i-am-kabab-case

Snake case: hello_i_am_snake_case

Sample of correct URLs

Router.post('/:i_am_a_parameter/i_am_path', ()=>{})

Router.post('/:integration_slug/verify-credentials', ()=>{})

Router.get('/:user_slug/source-components', ()=>{})

Router.get('/:user_slug/collections/:sync_from/no-of-rows', ()=>{})

Router.get('/:integration_slug/get-roles', ()=>{});

Below is a list of parameters used in the above routes. You can see all of them are using snake-case

integration_slug   sync_from  user_slug

Below is a list of paths used in the above routes. You can see all of them are using kebab-case

verify-credentials   source-components   no-of-rows get-roles

⁠High priority tasks

  • Remove existing test cases, and plan and write test cases for integration
  • Code coverage with Istanbul or something else
  • Add Swagger
  • A status endpoint to return useful information
  • Auth-Token will not be refreshed automatically. Tokens will be refreshed just before an activity that needs a token
  • Add script to bootstrap a new integration.
  • Update setup script: Divide into 2 parts. Part 1: prepare setup data. Part 2: Run script that create metadata. (May Use Inquirer)

⁠Low priority tasks

  • Remove stale branches
  • Replace hardcoded strings like installMode == 'cloud’ with constants
  • Remove redundant files (eg: files inside scripts folder)
  • Router modification. Should follow style-guide document

Tag summary

Content type

Image

Digest

sha256:4bf3e716a…

Size

499 MB

Last updated

about 4 years ago

docker pull kloudio/integrations