Skip to content

skunkteam/rust-firestore-emulator

Repository files navigation

TODO:

  • eval use of string_cache for collection-names, document-names and map-keys
  • eval use of cachemap2 instead of Arc<_> at certain points

Missing features

  • Mimic transaction behaviour from cloud Firestore (mixed pessimistic and optimistic)
  • Rest of the updates with Transforms
  • Documentation
  • ...

Important to know

This is highly experimental software.

How to use

brew install protobuf

Development

Debug mode:

FIRESTORE_EMULATOR_HOST=127.0.0.1:8080 cargo watch -cx run

Release mode:

FIRESTORE_EMULATOR_HOST=127.0.0.1:8080 cargo watch -cx "run --release"

Install

cargo install --path .

Then run:

FIRESTORE_EMULATOR_HOST=127.0.0.1:8080 firestore-emulator