When applications are running in production, they become black boxes that need to be traced and monitored. One of the simplest, yet main, ways to do so is logging. Logging allows us - at the time we develop our software - to instruct the program to emit information while the system is running that will be useful for us and our sysadmins.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
C# Tutorial © 2024 by Esteve Autet Alexe is licensed under | |
Creative Commons Attribution-ShareAlike 4.0 International. | |
To view a copy of this license, visit https://creativecommons.org/licenses/by-sa/4.0/ | |
*/ | |
// LOS SIGUIENTES WARNING ESTAN DESHABILITADOS POR QUE ESTO ES UNA GUIA. | |
using System.Collections; | |
using System.Runtime.InteropServices; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
# Absolute path of your file .ts where the endpoints are located (example: '/home/dev/project/app/driver/src/driver.controller.ts') | |
file_path = '' | |
postman_collection = { | |
"info": { | |
"name": "NestJS Endpoints Collection", | |
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" | |
}, | |
"item": [] | |
} |
We subscribe to the Git Featrue Branch workflow, briefly described in that link.
In practice, it works as follows:
- Start with an updated local development branch -- by checking out the dev branch and pulling changes:
git checkout development
git pull origin development
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
The Spotify API call, 'top-tracks' requires a ISO 3166-1 alpha-2 country code | |
//https://developer.spotify.com/web-api/get-artists-top-tracks/ | |
//https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 | |
//https://www.spotify.com/nl/legal/end-user-agreement/plain/#s19 | |
//EU is not included in this list, as it generates this error: | |
{ | |
"error": { | |
"status": 400, | |
"message": "Invalid country code" |