based on Practera SDK Overview
Docs
For development environment, here are mandatory utilities. - Npm (Nodejs) : Refer to https://nodejs.org/download/ - Ionic v2 : version 3.* - docker: version ^3.0
-
Install dependencies
npm install -g ionic #install ionic-cli globally -
Make sure your ionic is running at v3 by
ionic -vionic -v
-
If you have problem installing ionic v3, please uninstall current version of ionic with the following and repeat the step 1 & 2 above again to install ionic v3 correctly.
npm uninstall -g ionic
-
Setup Docker and run the app locally
docker-compose build # to setup docker container locally npm run start-server
-
Ionic Deeplinking/Routing Deeplinking allow a URL to auto redirect user into a specific page in the App. We also use named url parameters in URL, for example,
http://example.com?parameter_name=example_valuefor specific feature to adapt backward-compatible consideration.For example, using pagename in do parameter:
-
Reset password:
http://example.com?do=resetpassword&email=test@example.com&key=abcdefg -
Registration:
http://example.com?do=registration&email=test@example.com&key=abcdefg
-
-
Copy
src/configs/config.ts.defaulttosrc/configs/config.ts. Change your appkey insideconfig.tsbased on the appkey in your database. -
Start server or initiate app
ionic serve
- Cached web content - If you found what you see in browser isn't updated as expected after you've changed the codebase, you can try:
- Make sure
ionic servein your terminal if it is still running - Activate browser
Developer Modein Chrome/Safari/Firefox -OPT + CMD + I - Empty cache
- Chrome
- Application Tab
- Clear Storage
- click '[Clear selected]' button
- Safari
- Select
Develop - Disable cache
- Empty cache or
OPT + CMD + E
- Select
- Firefox
- Get into
Preference(use shortcut keyCMD + ,) - Select
Advanced - At the
Cached Web Contentclick '[Clear Now]' button
- Get into
- Chrome
- Make sure