Skip to content

Latest commit

 

History

History
58 lines (43 loc) · 1.79 KB

README.md

File metadata and controls

58 lines (43 loc) · 1.79 KB

Electronic Campus of Igor Sikorsky Kyiv Polytechnic Institute

PRs Welcome Docker Image Version (latest by date)

The information system "Electronic Campus of Igor Sikorsky Kyiv Polytechnic Institute" is an automated system supporting educational process informatization. It provides digital communication tools for students, faculty, and department heads, enhancing educational quality through modern technology.

Environment variables

  • API_ENDPOINT - campus API location. Default value: https://api.campus.kpi.ua/
  • OLD_UI_ADDRESS - location of 'classic' campus UI. Default value: https://campus.kpi.ua/
  • LOGIN_PAGE_ADDRESS - location of login page. Used for redirect from external authorization providers. Default value: https://ecampus.kpi.ua/login

Build project

npm run build

Run project

npm run start

Docker

Build container

docker build ./ --file ./Dockerfile --tag kpiua/ecampus-kpi-ua:latest

Run

Run with default settings

docker run --rm -it -p 80:80/tcp kpiua/ecampus-kpi-ua:latest

Run with custom settings

 docker run --rm -it -e API_ENDPOINT=https://api-v2.campus.kpi.ua/ -p 80:80/tcp kpiua/ecampus-kpi-ua:latest

or

docker run --rm -it \
  -e API_ENDPOINT=https://api.local/ \
  -e OLD_UI_ADDRESS=https://old-ui.local/  \
  -e LOGIN_PAGE_ADDRESS_LINE=https://ecampus.local/login \
  -p 80:80/tcp kpiua/ecampus-kpi-ua:latest

Run locally for debug

Update config.json file to set proper API endpoints and then run docker image:

docker-compose -f dev-docker-compose.yml up --build