- Install
yarn yarn startto run development server.- visit
localhost:9967to 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 startyarn testto run tests.
yarn integration-testto 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-pageDeployment should be almost automatic depending on which branch you pushed.
masterbranch push will trigger production deploybetabranch push will trigger beta deploystagingbranch 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.1Remember to bump the version of course.
Chrome 45+, Firefox 45+, IE 11, Safari 9+ and iOS 8+ Safari.