{"id":18695356,"url":"https://github.com/smartthingscommunity/mycloudtocloudschemaconnection","last_synced_at":"2025-04-12T07:25:23.635Z","repository":{"id":44084363,"uuid":"202163526","full_name":"SmartThingsCommunity/MyCloudToCloudSchemaConnection","owner":"SmartThingsCommunity","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-11T01:50:32.000Z","size":84,"stargazers_count":5,"open_issues_count":8,"forks_count":3,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-26T02:42:38.322Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SmartThingsCommunity.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-13T14:36:40.000Z","updated_at":"2023-09-11T13:09:49.000Z","dependencies_parsed_at":"2023-01-26T13:46:25.661Z","dependency_job_id":null,"html_url":"https://github.com/SmartThingsCommunity/MyCloudToCloudSchemaConnection","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmartThingsCommunity%2FMyCloudToCloudSchemaConnection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmartThingsCommunity%2FMyCloudToCloudSchemaConnection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmartThingsCommunity%2FMyCloudToCloudSchemaConnection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmartThingsCommunity%2FMyCloudToCloudSchemaConnection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SmartThingsCommunity","download_url":"https://codeload.github.com/SmartThingsCommunity/MyCloudToCloudSchemaConnection/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248532229,"owners_count":21119880,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T11:14:42.162Z","updated_at":"2025-04-12T07:25:23.613Z","avatar_url":"https://github.com/SmartThingsCommunity.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# My Clout to Cloud Schema Connection\nThis repository contains two Node.js applications, one that corresponds to a st-chema cloud to cloud web-hook, and an OAuth server.\n\n## Table of Contents\nI.   [General Considerations](#general)\n\nII.  [Stack and Dependencies](#stack)\n\nIII. [Initial Setup](#setup)\n\nIV.  [Web hook](#web-hook)\n\nV.   [OAuth server](#oaut)\n\n## General Considerations \u003ca name=\"general\"\u003e\u003c/a\u003e\nPlease make sure to have completed the corresponding workspace configuration for a new cloud to cloud integration with st-schema before going through this example.\n\n## Stack and Dependencies \u003ca name=\"stack\"\u003e\u003c/a\u003e\n\n| Name                  |\n|-                      |\n| Node.js               |\n| dotenv                |\n| express               |\n| st-schema             |\n| express-session       |\n| randomstring          |\n\n## Initial setup \u003ca name=\"setup\"\u003e\u003c/a\u003e\nTo configure this project please have the following considerations.\n1. API uses .env to set environment variables, such as CLIENT_ID \u0026 CLIENT_SECRET, please change them accordingly.\n2. Create the .env file inside:\n```\n[MY_LOCATION]/MyCloudToCloudSchemaConnection/oauth_server\n```\nContent example:\n```\nNAME=[...]\nPORT=[...]\nCLIENT_ID=[...]\nCLIENT_SECRET=[...]\nSESSION_SECRET=[...]\n```\n\n## Web Hook \u003ca name=\"web-hook\"\u003e\u003c/a\u003e\n\n1. Navigate to path:\n```\n[MY_LOCATION]/MyCloudToCloudSchemaConnection/web_hook\n```\n2. execute the following bash script:\n```bash\nnpm i\n```\n3. After Node modules have been installed execute:\n```bash\nnode .\n```\n4. Open a new terminal tab and run the following script:\n```bash\nssh -R webhook:80:localhost:3000 serveo.net\n```\n\n## OAuth Server \u003ca name=\"oaut\"\u003e\u003c/a\u003e\n\n1. Navigate to path:\n```\n[MY_LOCATION]/MyCloudToCloudSchemaConnection/oauth_server\n```\n2. execute the following bash script:\n```bash\nnpm i\n```\n3. After Node modules have been installed execute:\n```bash\nnode .\n```\n4. Open a new terminal tab and run the following script:\n```bash\nssh -R oauthexample:80:localhost:7000 serveo.net\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmartthingscommunity%2Fmycloudtocloudschemaconnection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmartthingscommunity%2Fmycloudtocloudschemaconnection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmartthingscommunity%2Fmycloudtocloudschemaconnection/lists"}