This README would normally document whatever steps are necessary to get your application up and running.
``sh`
yarn install
yarn run storybook
1. Set up the Mobility Observatory Service-
https://bitbucket.org/GoMetro/gometro-mobility-observatory-service/src/master/
2. Start the Mobility Observatory Service-
See the service's read me
sh
npm version {major|minor|patch} -m "{change message here}"yarn run build:publish
`API
Defaults
- The default production API URL is https://api.gometroapp.com
- The default development API URL is http://localhost:8080Overrides
If you want to use the API on a development machine or a custom domain set the below...
`
window.__MOBILITY_USE_DEV_API__ = true;
window.__MOBILITY_DEV_API__ = "your-custom-url-here"
`Publishing an image with CI/CD
Tag image
Firstly, make sure you are on a branch named release/* (for example - release/5.0.0)Then, run the tag script with the relevant change
`shell
./tag.sh minor
`
__See more about semantic versioning here - https://semver.org/__Valid options are: major | minor | patch
Then push both the commit and tag up to the repository
`shell
git push
git push --tags
``And wait for CI/CD to publish the new npm package :)