Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cypressxyx/firestore-nodejs-example
https://github.com/cypressxyx/firestore-nodejs-example
Last synced: 23 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/cypressxyx/firestore-nodejs-example
- Owner: Cypressxyx
- Created: 2019-01-15T06:17:29.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-16T10:20:54.000Z (almost 6 years ago)
- Last Synced: 2024-03-07T20:29:00.378Z (8 months ago)
- Language: JavaScript
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Connecting to firestore using nodejs example
This git provides example on how to use the firestore SDK using node.jsInitial Setup
Install the firestore SDK locally usingnpm i @google-cloud/firestore
Make sure to have a keyfile.json ready to access the db.
File can be found by going toproject settings > service accounts > Firebase ADMIN SDK > Generate new Private key
ConnecToDb.js
Contains an example of how to setup a connection to your firestore DBaddDocumentToCollection.js
Contains an example of how to add a document to a collection in your firestore DBgetDataFromCollection.js
Contains an exampleof how to get data from a certain collection