question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Typed repositories for Firestore

See original GitHub issue

Firestore Storage on Github

npm install firestore-storage

We have multiple NodeJS production apps written in Typescript which are heavily based on the Firestore Admin. From that this library was created, since we copied a lot of boilerplate code from each project.

It follows the repository pattern. For each collection you create a repository which provides you with a typed save, delete and multiple querying functions for listing and finding documents.

You can easily replace the “driver” from the default Firestore implementation with an included in-memory implementation for testing. It’s also compatible with one of your favorite open source library out there, the dependency injection library Inversify.

Since it helped us a lot and saves us a lot of code we made it opens source and published it on npm. Feedback much appreciated

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
samtsterncommented, Apr 16, 2019

@Bartinger looks good to me! Your project should appear on the site in the next 24h

0reactions
dominicbartlcommented, Apr 19, 2019

@samtstern 😆 thank you very much

Read more comments on GitHub >

github_iconTop Results From Across the Web

freshfox/firestore-storage - GitHub
Typed repositories for Node around Firestore providing a very simple API to write and read documents. Including a simple to use query builder...
Read more >
Firestore on Node in Production. Part 1: Repositories - Medium
This article is the first part of a series showing how we abstracted accessing Firestore using a thin and typed layer of repositories....
Read more >
A Repository Pattern Implementation for Firestore Subcollections
A method to get the IRepository instance for a specified collection (or Subcollection). The Model-Collection Map. To link each model class type ......
Read more >
Get started with Cloud Firestore - Firebase
This quickstart shows you how to set up Cloud Firestore, add data, then view the data you just added in the Firebase console....
Read more >
fireorm - ORM for Firestore
Fireorm tries to ease the development of apps that rely on Firestore at the database layer by abstracting the access layer providing a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found