No description
- JavaScript 75.8%
- TypeScript 12.8%
- HTML 6.5%
- Python 4.8%
- CSS 0.1%
| .vscode | ||
| dump/eida-portal-backend | ||
| src | ||
| .gitignore | ||
| README.md | ||
Quickstart
Backend
Quick start guide
-
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:
(env) $ pip install -r requirements.txt -
Initialize the DB:
(env) $ flask db init -
Create migration package:
(env) $ flask db migrate -
Apply migrations:
(env) $ flask db upgrade -
Run:
(env) $ flask run
Frontend
Config of eida-portal-frontend
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.
Production deployment
- 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
To build the eida-portal-frontend docker image
$ cd src/eida-portal-frontend/
$ docker build -t eida/frontend:latest .
$ docker run -p 49161:4200 -d eida/frontend:latest
Start local dev server for eida-portal-frontend
$ cd src/eida-portal-frontend/
$ npm install
$ npm start
Debug
Linux + Chrome + VS Code
- 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)
Mac + Chrome + VS Code
- Start the EIDA Portal frontend:
npm start - VS Code -> Debug -> Start Debugging (make sure to select right profile)
Docker
- Build and run the images:
$ cd src/eida-portal-backend/
$ docker-compose -p 'epb' up -d
CDN dependencies
- Frontend is using icons from http://fontawesome.com/