Skip to content

Build and Deploy Documentation

Steve edited this page Jun 6, 2022 · 12 revisions

This page contains the build and deploy guide of the Digital Identity Software.

Build & Deployment Process

Docker will be require to build and deploy our application.

Development Environment

Prerequisites

For setting the development server up Node.js, Marven, Docker and Angular CLI is required:

  1. Node.js
  2. Angular CLI
  3. Marven
  4. Docker

You have to clone the project using the following command in a Git Bash terminal:

git clone https://github.com/amosproj/amos2022ss04-digital-identity.git

Frontend

Run Frontend

cd src/digitalIdentity-frontend/
npm install
ng serve --open

Access URL: http://localhost:4200

Testing Frontend

Backend

Init mysql database

sudo apt install mysql-common # or similar
sudo mysql --password  # type in your root password of linux machine
create database digital_identity;
create user 'didentity'@'%' identified by 'aosai6aH';
grant all on digital_identity.* to 'didentity'@'%';
quit;

Set up mail relay:

  • In src/digitalIdentity-backend/src/main/resources/application.properties you have to define the mail settings.
  • For a gmail adress you need to create an app password, which you need to enter in the application.properties file. (https://support.google.com/accounts/answer/185833)
  • A valid section in application.properties could look like this:
spring.mail.host=smtp.gmail.com
spring.mail.port=587
spring.mail.username=myemail@gmail.com
spring.mail.password=wajorjsyogivfugt
spring.mail.properties.mail.smtp.auth=true
spring.mail.properties.mail.smtp.starttls.enable=true

Set up credential for accessing lissi api:

  • In src/digitalIdentity-backend/src/main/resources/application.properties you have to define the Credential.
  • You can find the Credential in the screenshot in the mail "Links and Information" (19.05.2022) (Field: Client Secret).
lissi.client.id= <to be filled>

Run Backend

cd src/digitalIdentity-backend/
./mvnw spring-boot:run

Testing Backend

Clone this wiki locally