Skip to content

Instantly share code, notes, and snippets.

View hushino's full-sized avatar
🇦🇷
Focusing

Hushino hushino

🇦🇷
Focusing
  • BotHub.moe
  • Cordoba, Argentina
  • 02:10 (UTC -03:00)
View GitHub Profile
@hushino
hushino / app.js
Created March 13, 2021 05:03 — forked from johnnybui/app.js
Node.JS - Import Data From Cloud Firestore Into Elasticsearch
const admin = require('firebase-admin');
const elasticsearch = require('elasticsearch');
// Config before running
const CONFIG = {
limit: 1000, // reduce if got Deadline exceeded error
index: 'stock',
type: 'doc',
dev: {
serviceAccountJson: './devServiceAccount.json',