This is a simple JavaScript app to import basic JSON data to Firestore.
npm install
- Edit
config.js
with API_KEY, AUTH_DOMAIN, and PROJECT_ID from your Firestore project. - Place your data inside of
data.json
in a similar format.
{
// these are collections
"exampleCollection": [
// these are documents
{
"key": "value",
"key": "value"
},
{
"key": "value",
"key": "value"
},
]
}
npm run import