Skip to content

Commit 2e28abe

Browse files
Merge branch 'main' into build/docker-compose-restart
2 parents a834b32 + fbd727c commit 2e28abe

16 files changed

+4688
-4247
lines changed

.github/workflows/backend.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ on:
88
jobs:
99
lint:
1010
runs-on: ubuntu-latest
11-
11+
1212
steps:
1313
- name: Checkout code
1414
uses: actions/checkout@v3
1515

1616
- name: Set up Node.js
1717
uses: actions/setup-node@v3
1818
with:
19-
node-version: '20'
19+
node-version: '22'
2020

2121
- name: Change to backend directory and install dependencies
2222
run: cd apps/api && npm install
@@ -27,15 +27,15 @@ jobs:
2727
build:
2828
needs: lint
2929
runs-on: ubuntu-latest
30-
30+
3131
steps:
3232
- name: Checkout code
3333
uses: actions/checkout@v3
3434

3535
- name: Set up Node.js
3636
uses: actions/setup-node@v3
3737
with:
38-
node-version: '20'
38+
node-version: '22'
3939

4040
- name: Change to backend directory and install dependencies
4141
run: cd apps/api && npm install

apps/api/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Use Node.js 20 as the base image
2-
FROM node:20
1+
# Use Node.js 22 as the base image
2+
FROM node:22
33

44
# Set the working directory inside the container
55
WORKDIR /app
@@ -26,4 +26,4 @@ RUN npm run build
2626
EXPOSE 3000
2727

2828
# Command to start your NestJS application
29-
CMD ./scheduler.sh & node dist/main.js
29+
CMD ["sh", "-c", "./scheduler.sh & node dist/main.js"]

apps/api/Transcript Summarization.postman_collection.json

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,10 @@
9292
]
9393
},
9494
"url": {
95-
"raw": "http://localhost:3000/graphql",
96-
"protocol": "http",
95+
"raw": "{{base_url}}/graphql",
9796
"host": [
98-
"localhost"
97+
"{{base_url}}"
9998
],
100-
"port": "3000",
10199
"path": [
102100
"graphql"
103101
]
@@ -186,12 +184,10 @@
186184
]
187185
},
188186
"url": {
189-
"raw": "http://localhost:3000/graphql",
190-
"protocol": "http",
187+
"raw": "{{base_url}}/graphql",
191188
"host": [
192-
"localhost"
189+
"{{base_url}}"
193190
],
194-
"port": "3000",
195191
"path": [
196192
"graphql"
197193
]
@@ -268,12 +264,10 @@
268264
}
269265
},
270266
"url": {
271-
"raw": "http://localhost:3000/graphql",
272-
"protocol": "http",
267+
"raw": "{{base_url}}/graphql",
273268
"host": [
274-
"localhost"
269+
"{{base_url}}"
275270
],
276-
"port": "3000",
277271
"path": [
278272
"graphql"
279273
]
@@ -337,12 +331,10 @@
337331
}
338332
},
339333
"url": {
340-
"raw": "http://localhost:3000/graphql",
341-
"protocol": "http",
334+
"raw": "{{base_url}}/graphql",
342335
"host": [
343-
"localhost"
336+
"{{base_url}}"
344337
],
345-
"port": "3000",
346338
"path": [
347339
"graphql"
348340
]
@@ -406,12 +398,10 @@
406398
}
407399
},
408400
"url": {
409-
"raw": "http://localhost:3000/graphql",
410-
"protocol": "http",
401+
"raw": "{{base_url}}/graphql",
411402
"host": [
412-
"localhost"
403+
"{{base_url}}"
413404
],
414-
"port": "3000",
415405
"path": [
416406
"graphql"
417407
]
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"id": "a513cfac-f3ec-4e78-a031-8fe55f62173a",
3+
"name": "Transcript Summarization",
4+
"values": [
5+
{
6+
"key": "auth-token",
7+
"value": "MICROSOFT-AUTH-TOKEN",
8+
"type": "default",
9+
"enabled": true
10+
},
11+
{
12+
"key": "base_url",
13+
"value": "BASE_URL",
14+
"type": "default",
15+
"enabled": true
16+
}
17+
],
18+
"_postman_variable_scope": "environment",
19+
"_postman_exported_at": "2025-06-16T08:18:51.860Z",
20+
"_postman_exported_using": "Postman/11.49.4"
21+
}

apps/api/docs/usage-guide.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,19 @@ When using the API, you'll need to set your **Microsoft authentication token** a
7373
2. Start the Portal
7474
3. Transcript Summarizer Portal should be running locally at `http://localhost:4200` (or `http://localhost:5000` for docker setup).
7575
4. Open the portal URL. You will be prompted to log in to your Microsoft account.
76-
5. Before proceeding, open developer tools (`ctrl+shift+i` OR `F12`) and open the **Network** tab.
77-
6. Login using your credentials. You will be directed to the Portal
78-
7. The request named `token` contains the Microsoft auth token that you can use for API.
76+
5. Before proceeding, open the developer tools of your browser. Popular shortcuts are `ctrl+shift+i` OR `F12`.
77+
6. Navigate to the **Network** tab.
78+
7. Login using your credentials. You will be directed to the Portal.
79+
8. Find the request labeled `token`. From its response data, extract the value associated with the key `access_token`.
80+
9. Use this extracted string as your Bearer token for authenticating API requests.
7981

8082
### Sending an API request
8183

8284
Transcript Summarizer offers a GraphQL endpoint that allows you to upload transcript files and access all your summaries with advanced filtering options. For detailed information, please refer to the following:
8385

8486
- [API documentation](./api-documentation.md)
8587
- [Postman Collection](./../Transcript%20Summarization.postman_collection.json)
88+
- [Postman Environment](./../Transcript%20Summarization.postman_environment.json)
8689

8790
## 5. Job Status Information
8891

0 commit comments

Comments
 (0)