Front application for materials browser. Use materials-browser-api project.
Required : npm
npm install -g @angular/cli
git clone https://dci-gitlab.cines.fr/dad/materials-browser-front.git
cd materials-browser-front
From project root, execute : npm install
For each machine where the project is deployed, there must modify machine environment variables. It can be found into file src/assets/environment.json
.
// File example content: environment.json
{
"apiUrl": "http://localhost:8000", # Materials browser API URL.
"log": true # Show console log.
}
Launch ng serve
from project root. With internet browser, go to address http://localhost:4200/
.
WARNING : API project directory materials-browser-api must be in the same directory than directory materials-browser-front.
Launch script build_package.sh
to create a zip archive materials-browser.zip
- Edit
.env
file to configure Docker environment.
# File example content
MYSQL_ROOT_PASSWORD=password
MYSQL_USER=materials-browser
MYSQL_PASSWORD=password
MYSQL_DATABASE=materials_browser
HTTPD_SERVER_ALIAS=domain.com
HTTPD_SERVER_NAME=domain.com
HTTPD_SERVER_ADMIN=xxxxx@xxxxx.xx
API_ADDRESS=http://domain.com/api
SYMFONY_APP_ENV=prod
SYMFONY_APP_DEBUG=0
- Launch
build_package.sh
to create application package. (like Installation > Step 6) - Launch
sudo podman-compose up
(orsudo docker-compose up
)