- Docker & docker-compose
- npm
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt install nodejs
- Pull this repo
cd PROP
sudo ./dc_script.sh
Optional- Delete Angular Frontend Docker container if debugging is not needed.
docker stop prop_frontend_1
docker rm prop_frontend_1
-
Pull this repo
-
cd PROP
-
cd frontend
-
sudo npm install
-
copy/paste
frontend/src/app/envDummy.json
tofrontend/src/app/env.json
-
In
frontend/src/app/env.json
, set{"id":2,"local_flag":"2"},
--> in that case, API Gateway endpoint is used instead of localhost -
cd ../..
(so that you are in the folderfrontend
) -
npx ng build --prod --output-path ../docs --base-href /bioinformatics/prop/
-
In
frontend/src/app/header/header.component.html
changesrc="/assets/canal_logo.svg"
tosrc="/bioinformatics/prop/assets/canal_logo.svg"
-
open
header.component.html
- Change from
../../assets/canal_logo.svg
to/bioinformatics/prop/assets/canal_logo.svg
- Host the docs folder on a hosting platform
- Pull this repo
cd PROP
- copy/paste
frontend/src/app/envDummy.json
tofrontend/src/app/env.json
- create .env with
BACKEND_APIKEY=DUMMY
sudo ./dc_script.sh
- wait for the script to finish
- open the website on
https://localhost:4200/
- Stop all running containers:
docker stop $(docker container ls -q)
- Delete frontend container:
docker rm prop_frontend_1
- Delete frontend Docker image:
docker rmi $(docker images -q)
- Delete unused frontend Docker volumes:
docker volume prune
- Rebuild:
sudo ./dc_script.sh
- Stop all running containers:
docker stop $(docker container ls -q)
- Delete all containers except frontend:
docker rm $(docker ps -a | grep -v "prop_frontend_1" | awk 'NR>1 {print $1}')
- Delete all unused Docker images:
docker rmi $(docker images -q)
- Delete unused Docker volumes:
docker volume prune
- Rebuild:
sudo ./dc_script.sh
- Stop all running containers:
docker stop $(docker container ls -q)
- Delete all containers:
docker rm $(docker ps -a)
- Delete all unused docker images:
docker rmi $(docker images -q)
- Delete unused Docker volumes:
docker volume prune
- Rebuild:
sudo ./dc_script.sh
-
local environment:
https://localhost:4200/
-
static hosting: domain provided by the hosting platform
This software is released under the MIT License, see LICENSE.txt.