/bigtable-emulator-frontend

This project is a frontend for Google Bigtable emulator and runs on localhost.

Primary LanguageJavaScriptMIT LicenseMIT

bigtable-emulator-frontend

This project is a frontend for Google Bigtable emulator and runs on localhost.

Getting started

Run the emulator

Open terminal and run the following command to start the Google Bigtable emulator.

Following will initialise the environment variable.

$(gcloud beta emulators bigtable env-init)

Now run the following to start the emulator.

gcloud beta emulators bigtable start

At this point we will see the following.

Executing: /usr/local/opt/google-cloud-sdk/platform/bigtable-emulator/cbtemulator --host=localhost --port=8086
[bigtable] Cloud Bigtable emulator running on 127.0.0.1:8086

Run the frontend

Open another terminal and set the following environment variables.

export GOOGLE_CLOUD_PROJECT=fake-localhost-project

export GOOGLE_APPLICATION_CREDENTIALS=fake-gcloud-account-key.json

export GOOGLE_BIGTABLE_INSTANCE=fake-localhost-instance

export BIGTABLE_EMULATOR_HOST=localhost:8086

Now run the following command to start the frontend.

npm run dev

This will open the frontend app on http://localhost:3000.

We can run the frontend on a different port by running the following command.

PORT=12345 npm run dev

This will open the app on http://localhost:12345.