Skip to content

moravianlibrary/orezy-frontend

Repository files navigation

OrezyFrontend

This project was generated using Angular CLI version 19.2.3.

Development

Run

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.

Build & Run

Build

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

Run

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 & Run

Build

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 .

Push to Dockerhub

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 Docker image

Local image

Run locally built Docker image

Run
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
Run exact version:
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

Image pulled from Docker Hub

Run image that someone built and pushed to Dockerhub.

Run
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

Running unit tests

To execute unit tests with the Karma test runner, use the following command:

ng test

Running end-to-end tests

For end-to-end (e2e) testing, run:

ng e2e

Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.

Additional Resources

For more information on using the Angular CLI, including detailed command references, visit the Angular CLI Overview and Command Reference page.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •