Skip to content

Commit 4e3d934

Browse files
committed
better README
1 parent a2263ed commit 4e3d934

File tree

1 file changed

+36
-3
lines changed

1 file changed

+36
-3
lines changed

README.md

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,24 @@ To run:
167167
docker run -it --rm -p 8080:3000 --env-file ./.env copilot-metrics-viewer-with-api
168168
```
169169

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
171188

172189
Application can be deployed using [Azure Developer CLI](https://aka.ms/azd) (azd).
173190

@@ -179,11 +196,27 @@ azd env set VUE_APP_SCOPE <organization/enterprise>
179196
azd env set VUE_APP_GITHUB_ORG <org name>
180197
# when using enterprise
181198
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
183200
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>
185202
```
186203

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+
187220
## License
188221

189222
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

Comments
 (0)