- Install
yarn
yarn start
to run development server.- visit
localhost:9967
to see live changes.
If you want to access the dev site from another device through LAN, remember to define your host machine's LAN IP as the API hostname. For example:
CPDB_API_HOST=[IP_ADDRESS]:8000 yarn run start
yarn test
to run tests.
yarn integration-test
to run selenium tests.- To run specific test
yarn run integration-test -- --file integration-test/test/complaint-page.spec.js
# or
yarn run integration-test -- --file complaint-page
Deployment should be almost automatic depending on which branch you pushed.
master
branch push will trigger production deploybeta
branch push will trigger beta deploystaging
branch push will trigger staging deploy
If you want to see each step, look at .circleci/config.yml
.
Important: Current version of Docker image is 0.0.1. Please update this when you make changes to it.
docker login
docker build -t cpdbdev/cpdbv2_mobile:0.0.1 .circleci/docker
docker push cpdbdev/cpdbv2_mobile:0.0.1
Remember to bump the version of course.
Chrome 45+, Firefox 45+, IE 11, Safari 9+ and iOS 8+ Safari.