- 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"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/
- array length and count variables can be set in
./.env.fixedVariables
- can set:
- MAFFT array length & count
- ClustalW array length & count
- can set:
sudo ./dc_script.sh --frontend-only
sudo ./dc_script.sh --backend-only
- 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.