0.0.1 • Published 6 months ago

equipp-spa v0.0.1

Weekly downloads
-
License
-
Repository
-
Last release
6 months ago

CI Build status

equipp-spa

This is the frontend for EQUIPP

Getting Started

Dependencies

Windows

  1. Node 16.15.0
  2. npm 7.6.0

Linux

  1. docker
  2. make

Linux Docker Environment Variables

These get injected when the container starts up. Node first compiles the app with src/environments/environment.docker.ts. Those values then get replaced with your environment variables with bin/entrypoint.sh. bin/entrypoint.sh also controls the default values if you do not define the environment variables.

VariableDefault Value
EQUIPP_API_URLhttps://localhost:5000
EQUIPP_AUTH_REDIRECT_URLhttp://localhost

Build and Test

Windows

Build

npm run build

Run

npm start then navigate to https://localhost:4200

Test

npm test

Linux

Build and run with Docker

make run runs the environment on port 80 and 443. Port 80 redirects to 443.

Run local development environment with Docker

make serve then navigate to https://localhost:4200

Run tests with Docker

make test