1

I've just set up the Emulator per the instructions here:

Dan$ firebase emulators:start --only functions
Starting emulators: ["functions"]
✔  functions: Emulator started at http://localhost:5001
i  functions: Watching "/Users/danfein/Desktop/reviews/backend/functions" for Cloud Functions...

I understand there's something running at :5001. My local DB environment is not running locally (as I understand that's not something supported by Firebase) so because my connections are going out to the web, I don't understand how to trigger something to :5001.

How can I, with my running React instance (running on :3000 if relevant), trigger one of the cloud functions currently living in my functions folder.

The functions do currently run and are appropriately triggered in the cloud.

1 Answer 1

1

You will want to set up your development environment as described in the documentation. There is a new emulator suite that ties together Cloud Firestore (which actually can be emulated) and Cloud Functions.

Sign up to request clarification or add additional context in comments.

3 Comments

Hi Doug, so it sort of jumps right into commands. I'm just having trouble conceptualizing what interface I will be using once it's set up/how I will actually trigger the commands. If it's there, it's not obvious right now (to me). Thanks in advance for your help
Did you click through to the quickstart example at the bottom?
Ah no didn't see that bit. Thank you for pointing me to it, will jump in

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.