{"id":23139046,"url":"https://github.com/circuit/webserver-example","last_synced_at":"2025-07-05T16:39:56.420Z","repository":{"id":79431029,"uuid":"69708577","full_name":"circuit/webserver-example","owner":"circuit","description":"Web server app using Circuit OAuth 2.0 Authorization Code Grant","archived":false,"fork":false,"pushed_at":"2018-06-26T16:31:22.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-02-09T20:33:22.226Z","etag":null,"topics":["circuit","oauth2","rest-api"],"latest_commit_sha":null,"homepage":"","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/circuit.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":"2016-09-30T23:20:55.000Z","updated_at":"2020-10-01T03:48:54.000Z","dependencies_parsed_at":"2023-04-14T11:47:17.045Z","dependency_job_id":null,"html_url":"https://github.com/circuit/webserver-example","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/circuit%2Fwebserver-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/circuit%2Fwebserver-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/circuit%2Fwebserver-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/circuit%2Fwebserver-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/circuit","download_url":"https://codeload.github.com/circuit/webserver-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247157283,"owners_count":20893220,"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":["circuit","oauth2","rest-api"],"created_at":"2024-12-17T13:13:11.038Z","updated_at":"2025-04-04T10:11:33.731Z","avatar_url":"https://github.com/circuit.png","language":"JavaScript","readme":"# webserver-example\nExample node.js web application to access the [circuit REST API](https://circuitsandbox.net/rest/v2/swagger). \nThe example shows how to authenticate using OAuth2 without any library and then perform REST calls.\n\n## Getting Started\n\n### Register an application\nUntil the developer portal is ready to self-register an application, register using the form at https://circuit.github.io/oauth.html.\n\n### Run the example\n* Rename config.json.template to config.json and add your `client_id` and `client_secret`.\n* Change the host and listening port if the app is not hosted at http://localhost:7007\n\n```bash\n    git clone https://github.com/circuit/webserver-example.git\n    cd webserver-example\n    // Rename config.json.template to config.json and add your `client_id` and `client_secret`\n    // Change the host and listening port if the app is not hosted at http://localhost:7007\n    npm install\n    node index.js\n``` \n\n\n \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcircuit%2Fwebserver-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcircuit%2Fwebserver-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcircuit%2Fwebserver-example/lists"}