#community-help

Setting up Typesense with Firestore Local Emulator

TLDR Isaac was struggling to run local emulator commands for Typesense with Firestore, Jason advised cloning the Github repository, running npm install and using Firebase-cli 10.x.

Powered by Struct AI

1

4
13mo
Solved
Join the chat
Nov 09, 2022 (13 months ago)
Isaac
Photo of md5-af05de5075c71d633bbc3f81aae8ca13
Isaac
01:38 PM
Probably a really dumb question from a total noob, but here it goes. I'm trying to get Typesense setup with Firestore. I installed the Typesense extension, and I can now access my Typesense cloud instance from my Firebase app, everything seems to sync properly, etc. Great!

Now, I would like to get the local emulator working as described in the "Development Workflow" section at the end of the README.md. There it says to run "npm run emulator" and "npm run typesenseServer". But, I don't see in the README.md where, or how, I was supposed to install those scripts and when I attempt to run them I get a "Missing script" error. Can someone point me in the right direction?
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
02:32 PM
You want to clone the extension Github repo on your computer, then from the root of the repo run npm install, then those two commands in the readme
02:33
Jason
02:33 PM
Ona side note, iirc you need to have Firebase-cli 10.x installed for it to work. It doesn’t work on future cli versions
Isaac
Photo of md5-af05de5075c71d633bbc3f81aae8ca13
Isaac
02:34 PM
Thanks!!!

1