@@ -167,7 +167,24 @@ To run:
167
167
docker run -it --rm -p 8080:3000 --env-file ./.env copilot-metrics-viewer-with-api
168
168
```
169
169
170
- ## Azure Deployment
170
+ ### Github App Registration
171
+
172
+ Go to Organization -> Settings -> Developer Settings section -> GitHub Apps -> New GitHub App
173
+
174
+ Replace <your org > with your organization name in the link:
175
+ ` https://github.com/organizations/<your org>/settings/apps `
176
+
177
+ 1 . Set a unique name
178
+ 2 . Provide a home page URL: your company URL or just ` http://localhost `
179
+ 3 . Add Callback URL for ` http://localhost:3000 `
180
+ 4 . Uncheck Webhook -> Active checkbox.
181
+ 5 . Set the scopes -> select ** Organization permissions** -> ** GitHub Copilot Business** -> select ** Access: Read-only**
182
+ 6 . Create a private key - it will get downloaded to your machine.
183
+ 7 . Install the app in the org -> Install App -> select your org
184
+
185
+ Note the ` application ID ` and ` Private Key ` .
186
+
187
+ ### Azure Deployment
171
188
172
189
Application can be deployed using [ Azure Developer CLI] ( https://aka.ms/azd ) (azd).
173
190
@@ -179,11 +196,27 @@ azd env set VUE_APP_SCOPE <organization/enterprise>
179
196
azd env set VUE_APP_GITHUB_ORG < org name>
180
197
# when using enterprise
181
198
azd env set VUE_APP_GITHUB_ENT < ent name>
182
- azd env set VUE_APP_GITHUB_API_URL /api/github
199
+ azd env set VUE_APP_GITHUB_API /api/github
183
200
azd env set GITHUB_CLIENT_ID < client id>
184
- azd env set GITHUB_CLIENT_SECRET < client secret>
201
+ azd env set GITHUB_CLIENT_SECRET < client secret for the GH App >
185
202
```
186
203
204
+ ### Running the docker image
205
+
206
+ Dashboard with proxy is just a docker image that can be deployed and run anywhere.
207
+
208
+ ``` bash
209
+ docker run -it --rm -p 3000:3000 \
210
+ -e VUE_APP_SCOPE=organization \
211
+ -e VUE_APP_GITHUB_API=/api/github \
212
+ -e VUE_APP_GITHUB_ORG=< org name> \
213
+ -e GITHUB_CLIENT_ID=< client id> \
214
+ -e GITHUB_CLIENT_SECRET=< client secret for the GH App> \
215
+ -e SESSION_SECRET=< random string> \
216
+ ghcr.io/karpikpl/copilot-metrics-viewer-with-proxy
217
+ ```
218
+
219
+
187
220
## License
188
221
189
222
This project is licensed under the terms of the MIT open source license. Please refer to [ MIT] ( ./LICENSE.txt ) for the full terms.
0 commit comments