Skip to content

Project designed to simplify interaction with Firestore. It provides an easy-to-use solution for performing CRUD operations and executing queries, all while maintaining a clean architecture.

Notifications You must be signed in to change notification settings

MohanedZekry/DotNetFirestore

Repository files navigation

DotNetFirestore

is a .NET Core Web API project designed to simplify interaction with Google Firestore. It provides an easy-to-use solution for performing CRUD operations and executing queries, all while maintaining a clean architecture.

Table of Contents

Features

  • Easy CRUD Operations: Perform create, read, update, and delete operations with minimal effort.
  • Flexible Query Support: Execute complex queries to retrieve data based on specific criteria.
  • Clean Architecture: Built with the repository pattern, ensuring a separation of concerns and enhancing maintainability.
  • Transaction Management: Robust support for managing transactions, ensuring data integrity.
  • MediatR branch: This branch implements MediatR for handling commands and queries, along with Fluent Validation for ensuring data integrity and validation rules.

Installation

To get started with the DotNetFireStore project, follow these steps:

  1. Clone the Repository:
    git clone https://github.com/MohanedZekry/DotNetFirestore
    

Instructions for Updating Firestore Configuration

  1. Open your appsettings.json file in your .NET Core project.

  2. Locate the Firestore configuration section, which should look like this:

    "Firestore": {
      "ProjectId": "your-firestore-project-id",
      "KeyFilePath": "Path/your-service-key.json"
    },
    

Replace the placeholders with your actual Firestore project details:

  • your-firestore-project-id: Replace this with your Firestore project's ID. You can find this in the Firebase console under your project settings.
  • Path/your-service-key.json: Replace this with the path to your Firestore service account key file (JSON). Make sure this path is accessible from your application.

Usage

After setting up the project, you can start using it to interact with Google Firestore.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

Project designed to simplify interaction with Firestore. It provides an easy-to-use solution for performing CRUD operations and executing queries, all while maintaining a clean architecture.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages