GitHub Page TODO: No unit test, sonar test yet for cuite-app
- Ionic 7
- Angular 15
- To run this project locally, start with
demo:true(in environment.ts) - Go to
https://localhost:4202/auth/demo(the SSL must not be omitted) to get authorised locally - Ignore the
.localsegmenterror during compilation (it's for devops purpose) - Start coding!
- Copy the "me" object from the localStorage from our app or core-admin
- Paste it in your running local cutie-app's localStorage with the same key ("me")
- There is no content in the root "/"
- relative-url must be added after the
https://localhost:4202/in order to see the content that you expect to see - For example,
https://localhost:4202/overview-onlywill redirect you to overview-only route. - You would not redirected and will get stuck in
https://localhost:4202when there is no relative URL appended.
- Follow this URL format: https://localhost:4202/?redirect=overview-only&jwt={OUR-APP-APIKEY}
- Get the APIKEY from the already authorised app user localStorage or HTTP header and replace {OUR-APP-APIKEY} with the obtained APIKEY
- You'll be redirect to the specified "redirect" destination.
- Run
npm installto install necessary packages - Duplicate
environment.local.tsunder thesrc/environments/folder and rename it toenvironment.ts - Run
npm run startto start a development server on your local, and calling sandbox.practera.com for API
To run the demo version of CUTIE on local
- Go to
src/environments/environments.ts, changedemo: falsetodemo: true - Run
npm run startto start a local server onlocalhost:4202
We use Capacitor to make the app work on Android, IOS & Electron
- install JAVA 8 JDK
- install Android Studio
- run
npx cap open androidto open the project
- Xcode 9 or above version is needed
- install the Xcode Command Line tools (either from Xcode, or running
xcode-select --install) - run
sudo gem install cocoapodsto install cocoapods - run
pod repo updateto update Cocoapods - run
npx cap open iosto open the project in Xcode
- run
npm run electron:startto launch the Electron instance
After code changes, in order to test the code on Android/IOS/Electron, run npm run build.
If there are dependency changes, run npx cap sync