Before use do an
npm i
- rename excel filet to input.xlsx
- replace the file in this project
- run
node ZonePopulationFileImporter.js
Link to remote DB
connect kubectl
gcloud container clusters get-credentials kec-main --zone us-central1-a --project supervanplus
port forward
kubectl port-forward lgx-ope-mongo-5bf586864f-dwv4j 27017:27017
start the process
node server.js
change or remove filter at ZonePopulationDA.js
static getPopulations$() {
return defer(() => getCollection('ZonePopulation')).pipe(
map(collection => collection.find({
"distributionCenterId": "8bc6243d-e062-4c52-a55a-04f41560125c" //TODO: esto solo es CEDI MEDELLIN. eliminar para leer todos los CEDIS
}).sort({ code: 1 })),
mergeMap(cursor => mongoDbInstance.extractAllFromMongoCursor$(cursor))
)
}