{"id":27160342,"url":"https://github.com/clevercloud/network-groups-example","last_synced_at":"2025-04-08T23:44:56.682Z","repository":{"id":281203859,"uuid":"944402035","full_name":"CleverCloud/network-groups-example","owner":"CleverCloud","description":"An application demo to show Network Groups in action","archived":false,"fork":false,"pushed_at":"2025-03-07T15:00:26.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-04-08T23:44:48.280Z","etag":null,"topics":["clevercloud-example","network","wireguard"],"latest_commit_sha":null,"homepage":"http:/ww.clever-cloud.com/doc/develop/network-groups/","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/CleverCloud.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-07T09:33:53.000Z","updated_at":"2025-03-07T15:00:29.000Z","dependencies_parsed_at":"2025-03-07T15:44:03.205Z","dependency_job_id":null,"html_url":"https://github.com/CleverCloud/network-groups-example","commit_stats":null,"previous_names":["clevercloud/network-groups-example"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CleverCloud%2Fnetwork-groups-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CleverCloud%2Fnetwork-groups-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CleverCloud%2Fnetwork-groups-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CleverCloud%2Fnetwork-groups-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CleverCloud","download_url":"https://codeload.github.com/CleverCloud/network-groups-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247947820,"owners_count":21023058,"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":["clevercloud-example","network","wireguard"],"created_at":"2025-04-08T23:44:56.034Z","updated_at":"2025-04-08T23:44:56.677Z","avatar_url":"https://github.com/CleverCloud.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Link applications in a Clever Cloud Network Group\n\nTo follow this tutorial, you need a [Clever Cloud account](https://console.clever-cloud.com) and [Clever Tools](https://github.com/CleverCloud/clever-tools):\n\n```bash\nnpm i -g clever-tools\nclever login\n```\n\n## Create and configure the applications\n\nClone this repository:\n\n```bash\ngit clone https://github.com/CleverCloud/network-groups-example\ncd network-groups-example\n```\n\nCreate and configure the private service:\n\n```bash\n# Note the application ID, we'll need it later\nclever create -t python private_app\n\n# Configure the application\nclever env set APP_FOLDER \"private_app\" --alias private_app\nclever env set CC_RUN_COMMAND \"uv run main.py\" --alias private_app\n\n# Deploy the application without following the logs\nclever deploy --exit-on deploy-start --alias private_app\n```\n\nCreate and configure the public website:\n\n```bash\n# Note the application ID, we'll need it later\nclever create -t node public_app\n\n# Configure the application\nclever env set APP_FOLDER \"public_app\" --alias public_app\n```\n\n## Create and configure the network group\n\nCreate the network group and link the two applications to it:\n\n```bash\nclever features enable ng\nclever ng create myNGDemo --link [private_app_id],[public_app_id]\n```\n\n\u003e [!TIP]\n\u003e Replace `[private_app_id]` and `[public_app_id]` with the application IDs you noted earlier.\n\nGet the private application domain within the network group, use it for public application configuration:\n\n```bash\nclever env set PRIVATE_SERVICE_URL \"http://$(clever ng get [private_app_id] --format json | jq -r '.domainName'):4242\" --alias public_app\n```\n\nDeploy the public website without following the logs\n\n```bash\nclever deploy --alias public_app\nclever open --alias public_app\n```\n\nYou should see the public website, inverting the provided text through the private service available only within the Clever Cloud Network Group. Learn more about [Network Groups](http://www.clever-cloud.com/doc/develop/network-groups/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclevercloud%2Fnetwork-groups-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclevercloud%2Fnetwork-groups-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclevercloud%2Fnetwork-groups-example/lists"}