Giter VIP home page Giter VIP logo

firestore_algolia_flutter_cloud_function's Introduction

Firestore Full Text Search with Algolia, Cloud Functions, and Flutter Client App

Alt text

Description

Using Firestore as Database with Full Text Search capability using Algolia and Google Cloud Functions, included Flutter Client App. Everytime data is inserted, updated, and deleted in firestore database, a function will be invoked and update the index in Algolia. The Client app will use Algolia SDK to query the data in the front end mobile app.

Requirements

Algolia Account(https://www.algolia.com) Firebase Account(https://firebase.google.com) Flutter SDK (https://www.flutter.dev) Firebase SDK (npm install -g firebase-tools)

Getting Started

  • Register Algolia Free Account, Get APP ID, ADMIN KEY, and CLIENT KEY
  • Register for Firebase and create new project, set account to Blaze plan
  • Initialize Firebase project in directory using SDK
  • Download Service Account JSON for firebase project, rename to serviceAccount.json put in project root path
  • Retrieve Firebase URL and go to functions/src/firestore_import_data.ts and paste it initializeApp
  • Retrieve Algolia APP ID and ADMIN KEY and go to functions/src/index.ts and paste in algolia initialization
  • Retrieve Algolia APP ID and CLIENT KEY and go to algolia_search_flutter/libs/algolia_service.dart and paste the file in algolia initialization
  • Go to functions folder and run npm install
  • Go to root path and run firebase deploy --only functions to develop your functions trigger that will start indexing to algolia whenever data is inserted, updated, and deleted in your firestore db
  • Run npm run import to begin importing stub data from data.json to your firestore db
  • Check your firestore console and algolia console to see all the data successfully imported
  • Run the Flutter app in algolia_search_flutter

firestore_algolia_flutter_cloud_function's People

Contributors

alfianlosari avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.