Local Development
To test your Bazaar app locally, run the mock:
This will launch a mock Bazaar server on port 3377. It will also create an app with ID “test” that is expected to run on http://localhost:8080.
You can change these defaults with the following options.
The mock server is close in functionality with the real server. You can log in on http://localhost:3377 with any email and code 1234. This gives you access to your mock Bazaar dashboard and you can also add more apps. All data is stored in memory and only exists as long as the mock server is running.
Connect your app to the mock server
When running your app in development mode, the Bazaar library will automatically connect to mock server URL by defaulting bazaarUri
to http://localhost:3377
. In production, bazaarUri
is set to https://cloud.bzr.dev
. You can optionally set this URL when creating a BazaarApp.