Skip to content

Commit 0dadf28

Browse files
Merge pull request #1 from andresWeitzel/feature-01-add-api-integration-address-functionalities
feature-01-add-api-integration-address-functionalities
2 parents c1346c4 + 789143a commit 0dadf28

File tree

20 files changed

+1451
-1062
lines changed

20 files changed

+1451
-1062
lines changed

.gitattributes

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
*.js linguist-detectable=true
2+
*.ts linguist-detectable=true
3+
*.py linguist-detectable=true
4+
*.sql linguist-detectable=true
5+
6+
*.js linguist-language=javascript
7+
*.ts linguist-language=typescript
8+
*.py linguist-language=python
9+
*.sql linguist-language=sql

.github/workflows/codacy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ on:
2020
# The branches below must be a subset of the branches above
2121
branches: [ "master" ]
2222
schedule:
23-
- cron: '37 14 * * 1'
23+
- cron: '25 2 * * 2'
2424

2525
permissions:
2626
contents: read

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ on:
1818
# The branches below must be a subset of the branches above
1919
branches: [ "master" ]
2020
schedule:
21-
- cron: '26 18 * * 5'
21+
- cron: '25 2 * * 2'
2222

2323
jobs:
2424
analyze:

.github/workflows/devskim.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
6+
name: DevSkim
7+
8+
on:
9+
push:
10+
branches: [ "master" ]
11+
pull_request:
12+
branches: [ "master" ]
13+
schedule:
14+
- cron: '25 2 * * 2'
15+
16+
jobs:
17+
lint:
18+
name: DevSkim
19+
runs-on: ubuntu-20.04
20+
permissions:
21+
actions: read
22+
contents: read
23+
security-events: write
24+
steps:
25+
- name: Checkout code
26+
uses: actions/checkout@v3
27+
28+
- name: Run DevSkim scanner
29+
uses: microsoft/DevSkim-Action@v1
30+
31+
- name: Upload DevSkim scan results to GitHub Security tab
32+
uses: github/codeql-action/upload-sarif@v2
33+
with:
34+
sarif_file: devskim-results.sarif

.github/workflows/njsscan.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
6+
# This workflow integrates njsscan with GitHub's Code Scanning feature
7+
# nodejsscan is a static security code scanner that finds insecure code patterns in your Node.js applications
8+
9+
name: njsscan sarif
10+
11+
on:
12+
push:
13+
branches: [ "master" ]
14+
pull_request:
15+
# The branches below must be a subset of the branches above
16+
branches: [ "master" ]
17+
schedule:
18+
- cron: '25 2 * * 2'
19+
20+
permissions:
21+
contents: read
22+
23+
jobs:
24+
njsscan:
25+
permissions:
26+
contents: read # for actions/checkout to fetch code
27+
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
28+
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
29+
runs-on: ubuntu-latest
30+
name: njsscan code scanning
31+
steps:
32+
- name: Checkout the code
33+
uses: actions/checkout@v3
34+
- name: nodejsscan scan
35+
id: njsscan
36+
uses: ajinabraham/njsscan-action@7237412fdd36af517e2745077cedbf9d6900d711
37+
with:
38+
args: '. --sarif --output results.sarif || true'
39+
- name: Upload njsscan report
40+
uses: github/codeql-action/upload-sarif@v2
41+
with:
42+
sarif_file: results.sarif

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
# gRPC\_IP\_Geolocation\_API\_Integration\_Nodejs
44

5+
Api gRPC protobuf para la integración de servicios de IPWHOIS.IO implementado con Nodejs, Expressjs, etc
6+
57
Api gRPC para la integración de servicios de IPWHOIS.IO implementado con Nodejs, Expressjs, etc
68

79
* [Playlist Prueba de Funcionalidad](https://www.youtube.com/playlist?list=PLCl11UFjHurD2RjD9OiBfyKpsgwEzZzBv)
@@ -317,9 +319,24 @@ npm run dev o npm start
317319

318320
#### Ejemplos código
319321

322+
<<<<<<< HEAD
323+
324+
* [Ejemplo base](https://www.honeybadger.io/blog/building-apis-with-node-js-and-grpc/)
325+
* [Integración Api restful con rpc](https://blog.logrocket.com/communicating-between-node-js-microservices-with-grpc/)
320326
* [Crud grpc express-nodejs](https://blog.logrocket.com/creating-a-crud-api-with-node-express-and-grpc/)
321327
* [Videotutorial Crud grpc express-nodejs](https://www.youtube.com/watch?v=xBO7RohEhOY)
322328

329+
#### Protocolo buffer (protobuf)
330+
331+
* [Documentación recomendada](https://blog.logrocket.com/creating-a-crud-api-with-node-express-and-grpc/)
332+
333+
\=======
334+
335+
* [Crud grpc express-nodejs](https://blog.logrocket.com/creating-a-crud-api-with-node-express-and-grpc/)
336+
* [Videotutorial Crud grpc express-nodejs](https://www.youtube.com/watch?v=xBO7RohEhOY)
337+
338+
> > > > > > > c1346c4585f1dc1ca3f0eb94180dce90c70962ad
339+
323340
#### Librerías
324341

325342
* [Manejo de validaciones con express-validator](https://medium.com/dataseries/introduction-to-request-body-validation-in-express-apps-with-express-validator-7b9725ca780d)

package-lock.json

Lines changed: 19 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,18 @@
44
"description": "",
55
"main": "index.js",
66
"scripts": {
7+
"start": "node src/server.js",
8+
"start:dev": "nodemon src/server.js",
9+
"start:rpc": "node src/server-rpc.js",
710
"check": "remark . --quiet --frail",
811
"format": "remark . --quiet --frail --output",
9-
"format-md": "remark . --output",
10-
"start": "npm run format-md && node src/server.js",
11-
"start:dev": "nodemon src/server.js"
12+
"format-md": "remark . --output"
1213
},
1314
"keywords": [],
1415
"author": "",
1516
"license": "ISC",
1617
"dependencies": {
18+
"@grpc/grpc-js": "^1.9.5",
1719
"@grpc/proto-loader": "^0.7.10",
1820
"axios": "^1.5.0",
1921
"cors": "^2.8.5",
@@ -41,24 +43,22 @@
4143
"settings": {
4244
"emphasis": "*",
4345
"strong": "*"
44-
}
45-
},
46+
},
4647
"plugins": [
4748
"remark-preset-lint-consistent",
4849
"remark-preset-lint-recommended",
49-
"remark-lint",
5050
"remark-lint-table-cell-padding",
51-
[
52-
"remark-lint-list-item-indent",
53-
"tab-size"
54-
],
51+
"remark-lint",
52+
"remark-lint-list-item-indent",
5553
[
5654
"remark-lint-emphasis-marker",
5755
"*"
5856
],
5957
[
6058
"remark-lint-strong-marker",
6159
"*"
62-
]
60+
],
61+
["remark-lint-heading-style", "atx" ]
6362
]
63+
}
6464
}

0 commit comments

Comments
 (0)