- download the docker-compose.yml
- Spin up the emulator + ui
docker-compose up
- You will have a pubsub emulator running with the project name:
test-project
- feel free to modify the topic + subscriptions in the docker compose for your needs
- Run docker ps to list the running containers so that you can see the ports you need to connect to
- by default emulator on 8681, ui on 7200 (you can change this in docker-compose)
This application is meant to assist in local development of software related to Google Pub/Sub.
- The current Google Pub/Sub emulator does not have any visual tooling
- I hate having to communicate with the emulator strictly through code
- An existing project (gcp-pubsub-emulator-ui) would allow users to pull messages, but was limited to only pulling 1 message at a time.
- I didn't know enough about Maven/Gradle/Java to go in and modify so I just decided to rebuild the tool and try and pick-up some new skills in the process.
-
First Clone the repository
git clone https://github.com/NeoScript/pubsub-ui.git
-
Then open the folder with VSCode
- VSCode is NOT required, but I've got some .devcontainers setup that may be helpful
cd pubsub-ui code .
-
Reopen the workspace in a container
- To learn more about devcontainers check out this link
-
Spin up the supporting docker-compose file
- note: we are currently spinning up this very helpful wrapper around the emulator.
- additionally I have the gcp-pubsub-emulator-ui image spinning up as well just so I can use it as a reference for some functionality
- at some point we may try and transition to just spinning up the gcloud sdk itself
-
Start serving the angular webapp
cd webapp npm run start
-
You should now be able to develop and have changes trigger refreshes on the webapp!