This project was generated using Angular CLI version 19.2.3.
npm run start
for a local dev server. Navigate to http://localhost:4400/.
The application will automatically reload if you change any of the source files.
First define configuration in environment variables
export APP_DEV_MODE=false
export APP_ENV_NAME="local npm run build"
export APP_ENV_CODE="l-nrb"
export APP_DATA_SERVER_URL="https://ai-orezy-data.test.api.trinera.cloud"
export APP_DATA_SERVER_AUTH_TOKEN="SECRET"Now run npm run build to build the project.
The build artifacts will be stored in the dist/ directory.
The environment configuration from APP_* variables will be stored into dist/orezy-frontend/assets/env.json
To test the the app you've just built
npx serve dist/orezy-frontend/browser -l 8181
And open in browser
http://localhost:8181
docker build -t orezy-frontend .
possibly including version tag
docker build -t trinera/orezy-frontend:1.0.0-dev .
or including version tag and tag latest
docker build -t trinera/orezy-frontend:latest -t trinera/orezy-frontend:1.0.0-dev .
Only if you have write access to Dockerhub repository trinera/orezy-frontend. You don't need this to run localy built Docker image.
docker push trinera/orezy-frontend:1.0.0-dev
docker push trinera/orezy-frontend:latest
Run locally built Docker image
docker run -p 1234:80 \
-e APP_DEV_MODE=false \
-e APP_DATA_SERVER_URL=https://ai-orezy-data.test.api.trinera.cloud \
-e APP_DATA_SERVER_AUTH_TOKEN=SECRET \
trinera/orezy-frontend
docker run -p 1234:80 \
-e APP_DEV_MODE=false \
-e APP_DATA_SERVER_URL=https://ai-orezy-data.test.api.trinera.cloud \
-e APP_DATA_SERVER_AUTH_TOKEN=SECRET \
trinera/orezy-frontend:latest
or
docker run -p 1234:80 \
-e APP_DEV_MODE=false \
-e APP_DATA_SERVER_URL=https://ai-orezy-data.test.api.trinera.cloud \
-e APP_DATA_SERVER_AUTH_TOKEN=SECRET \
trinera/orezy-frontend:1.0.0-dev
Run image that someone built and pushed to Dockerhub.
docker pull trinera/orezy-frontend:latest
docker run -p 1234:80 \
-e APP_DEV_MODE=false \
-e APP_DATA_SERVER_URL=https://ai-orezy-data.test.api.trinera.cloud \
-e APP_DATA_SERVER_AUTH_TOKEN=SECRET \
trinera/orezy-frontend
And open in browser
http://localhost:1234
To execute unit tests with the Karma test runner, use the following command:
ng testFor end-to-end (e2e) testing, run:
ng e2eAngular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
For more information on using the Angular CLI, including detailed command references, visit the Angular CLI Overview and Command Reference page.