{"id":21417328,"url":"https://github.com/staffbase/create-staffbase-plugin-nodejs","last_synced_at":"2026-01-02T13:23:12.972Z","repository":{"id":21651069,"uuid":"93079143","full_name":"Staffbase/create-staffbase-plugin-nodejs","owner":"Staffbase","description":"Generates a Staffbase project skeleton for Node.js","archived":false,"fork":false,"pushed_at":"2024-04-26T06:27:55.000Z","size":1026,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":30,"default_branch":"master","last_synced_at":"2024-04-26T07:33:44.867Z","etag":null,"topics":[],"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/Staffbase.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-01T16:46:10.000Z","updated_at":"2024-05-29T15:50:39.145Z","dependencies_parsed_at":"2023-02-17T20:31:01.845Z","dependency_job_id":"33973e25-20f6-461c-ae32-309d9986e3ea","html_url":"https://github.com/Staffbase/create-staffbase-plugin-nodejs","commit_stats":{"total_commits":73,"total_committers":9,"mean_commits":8.11111111111111,"dds":0.726027397260274,"last_synced_commit":"9c444fc154cde7b16194006d5ffb1fad8264cbad"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Staffbase%2Fcreate-staffbase-plugin-nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Staffbase%2Fcreate-staffbase-plugin-nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Staffbase%2Fcreate-staffbase-plugin-nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Staffbase%2Fcreate-staffbase-plugin-nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Staffbase","download_url":"https://codeload.github.com/Staffbase/create-staffbase-plugin-nodejs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225950743,"owners_count":17550309,"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-22T19:14:37.684Z","updated_at":"2026-01-02T13:23:12.941Z","avatar_url":"https://github.com/Staffbase.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Create-Staffbase-SSO-CLI Documentation\n![Staffbase Logo](https://staffbase.com/wp-content/themes/staffbase-theme/img/logo-blau.svg)\n## Getting started\nInstall the package in your global namespace and then run the command.\n\n```bash\n$ npm install -g @staffbase/create-staffbase-plugin\n$ create-staffbase-plugin /home/user1/work/staffbase-server/ --name staffbase-sso-server\n```\n\nYou can use `yarn create` to directly run the command. The syntax of `yarn create staffbase-plugin` is:\n\u003e yarn create @staffbase/staffbase-plugin [Destination folder] --name [Plugin Name]\n\nExample:\n```bash\n$ yarn create @staffbase/staffbase-plugin /home/user1/work/staffbase-server/ --name staffbase-sso-server\n```\n## Interactive Mode\nYou can also run the command without passing any arguments to get into interactive\nmode which would ask you the name of your app and the path where it need to be installed.\n```\n$ create-staffbase-plugin\n\nPlease enter npm compatible name: (my-staffbase-backend)\nPlease enter the folder path for the App: (/private/tmp/staffbase/my-staffbase-backend)\nThe directory you specified already exists. It will be overridden!\nDo you wish to proceed (y)es|(n)o?: (no)\n\nSetting up your project in:  /private/tmp/staffbase/server\nInstalling dependencies...se/server\n```\n\nOn entering the path, you can either specify an absolute path or a relative path. The relative path is resolved against the current working directory (`process.cwd()`).\n\n## Configuration\nAfter the scaffolding is complete, you need to provide some values for configuring your\nplugin server. The following values need to be configured.\n\n- Plugin Secret\n- Plugin Audience\n\nYou can either specify these values in environment variables or directly passing\nthe values in the `app.js` file where the middleware is initialized.\n\nTo configure values in `app.js` file, change the following lines:\n\napp.js\n```javascript\n12 ...\n13 ...\n14 const key = null;\n15 const pluginID = null;\n16 ...\n```\n\nYou can also specify these values using environment variables.\nRefer to the table to see which environment variables can be used.\n\n|   *Value*     |   *Environment Variable*    |           *Default if not set*           |\n|:--------------|:--------------------------: |:----------------------------------------:|\n|Secret         |STAFFBASE_SSO_SECRET         | *(empty)*                                |\n|Audience       |STAFFBASE_SSO_AUDIENCE       | *(empty)*                                |\n|Server Port    |PORT                         | 3000                                     |\n|Server Address |ADDRESS                      | *(empty, listening on all IP addresses)* |\n\n## Running the server\n_create-staffbase-plugin_ installs the project dependencies for you.\nAfter configurations is done, the only thing you need to do is navigate to the\nfolder where your app was generated and start the express server.\n```bash\n$ cd [path of generated app]\n$ npm start\n```\n\n## License\n\nCopyright 2017-2024 Staffbase GmbH.\n\nLicensed under the Apache License, Version 2.0: https://www.apache.org/licenses/LICENSE-2.0\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\n      \u003cimg src=\"docs/assets/images/staffbase.png\" alt=\"Staffbase GmbH\" width=\"96\" /\u003e\n    \u003c/td\u003e\n    \u003ctd\u003e\n      \u003cb\u003eStaffbase GmbH\u003c/b\u003e\n      \u003cbr /\u003eStaffbase is an internal communications platform built to revolutionize the way you work and unite your company. Staffbase is hiring: \u003ca href=\"https://jobs.staffbase.com\" target=\"_blank\" rel=\"noreferrer\"\u003ejobs.staffbase.com\u003c/a\u003e\n      \u003cbr /\u003e\u003ca href=\"https://github.com/Staffbase\" target=\"_blank\" rel=\"noreferrer\"\u003eGitHub\u003c/a\u003e | \u003ca href=\"https://staffbase.com/\" target=\"_blank\" rel=\"noreferrer\"\u003eWebsite\u003c/a\u003e | \u003ca href=\"https://jobs.staffbase.com\" target=\"_blank\" rel=\"noreferrer\"\u003eJobs\u003c/a\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstaffbase%2Fcreate-staffbase-plugin-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstaffbase%2Fcreate-staffbase-plugin-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstaffbase%2Fcreate-staffbase-plugin-nodejs/lists"}