-
Go to the root directory:
src/eida-portal-backend/
-
Create the virtual environment:
python3 -m venv .env
-
Activate the virtual environment:
source .env/bin/activate
-
Install the dependencies:
pip install -r requirements.txt
-
Initialize the DB:
flask db init
-
Create migration package:
flask db migrate
-
Apply migrations:
flask db upgrade
-
Apply the fixtures:
sqlite3 ./app/db/epb.db < fixtures.sql
-
Run:
flask run
Some basic settings are stored in:
- Production build:
src/eida-portal-frontend/src/environments/environment.prod.ts
. - Dev build:
src/eida-portal-frontend/src/environments/environment.ts
.
-
Build the distribution package:
cd src/eida-portal-frontend/ ng build --prod --base-href=/epf/
-
Build will be located in
src/eida-portal-frontend/dist/eida-portal
-
Package is ready to be served directly by a simple static HTML server
Please refer to https://angular.io/guide/deployment
cd src/eida-portal-frontend/
docker build -t eida/frontend:latest .
docker run -p 49161:4200 -d eida/frontend:latest
cd src/eida-portal-frontend/
npm install
npm start
- Start Chrome on Linux with debugging port:
google-chrome-stable --remote-debugging-port=9222
- Start the EIDA Portal frontend:
npm start
- VS Code -> Debug -> Start Debugging (make sure to select right profile)
- Start the EIDA Portal frontend:
npm start
- VS Code -> Debug -> Start Debugging (make sure to select right profile)
- Build and run the images:
cd src/eida-portal-backend/
docker-compose -p 'epb' up -d --no-deps --build
- Frontend is using icons from http://fontawesome.com/