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
.localsegment
error 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-only
will redirect you to overview-only route. - You would not redirected and will get stuck in
https://localhost:4202
when 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 install
to install necessary packages - Duplicate
environment.local.ts
under thesrc/environments/
folder and rename it toenvironment.ts
- Run
npm run start
to 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: false
todemo: true
- Run
npm run start
to 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 android
to 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 cocoapods
to install cocoapods - run
pod repo update
to update Cocoapods - run
npx cap open ios
to open the project in Xcode
- run
npm run electron:start
to 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