-
Notifications
You must be signed in to change notification settings - Fork 1
PDA SESSION
pace edited this page May 22, 2020
·
3 revisions
- Java - 8+
- Git
- Gradle
A step by step process to get a development environment up and running.
Get the application from the git repository.
git clone https://github.com/PDA-Open-Source/PDA-SESSION.git
cd PDA-SESSION
Copy the below list of configuration and add it to application.properties file, insert the values with proper configuration details.
server.port = 9091
#neo4j Configuration Same registry Configuration
server.nginx.name=http://domainname
spring.data.neo4j.username=neo4j
spring.data.neo4j.password=neo4j_password
spring.data.neo4j.port=7687
spring.data.neo4j.uri=bolt://localhost:7687 #neo4j url
# Postgres Database Configuration
spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true
spring.datasource.url=jdbc:postgresql://localhost:5432/pda_new_session
spring.datasource.username=postgres
spring.datasource.password=password
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
spring.jpa.hibernate.ddl-auto=create #when starting the application on for the first time set the value to “create” else set the value to “update”.
#PDA Application URL
iam-baseurl= http://localhost:9090/user/ #PDA-SOCION-IAM url
Entity.get=http://localhost:9092/entity/ #PDA-Entity End point
registry-base-url=http://localhost:8081/ #Registry or OpenSABER Endpoint
getGenerateAttestationUrl=http://localhost:9092/api/v1/entity/ #PDA-Entity End point
#keycloak Configuration
keycloak.principal-attribute=preferred_username
keycloak.auth-server-url=http://localhost:8080/auth/ #Keycloak endpoint URL
keycloak.realm=master
keycloak-client-id=admin-cli
keycloak.credentials.secret=
client.granttype=password
admin-user-username=admin
admin-user-password=password
keycloak.resource=account
salt-value=
iv-value=
secret-key=the quick brown fox jumps over the lazy dog
key-size=128
iteration-count=1000
keycloak.bearer-only = true
spring.jpa.show-sql=true
# Clevertap Credential Configuration
clevertap.account-id=
clevertap.passcode=
clevertap.base.uri=http://localhost:9092/api/v1/entity/
# aws s3 configuration
aws-accesskey=
aws-secretkey=
aws-s3-bucket-name=
aws-s3-url=
aws-s3-region=
# Threshold after which files are written to disk.
spring.servlet.multipart.enabled=true
spring.servlet.multipart.file-size-threshold=2KB
# Max file size.
spring.servlet.multipart.max-file-size=50MB
# Max Request Size
spring.servlet.multipart.max-request-size=55MB
# generate attestation url
attestation.generate=http://localhost:9092/api/v1/template/ #Entity Application Endpoint
attestation.generate.multiple=https://pda.socion.io/template/
organisation.get=http://localhost:9092/api/v1/entity/orgs
organisation.get.names=http://loaclahost:9092/api/v1/entity/orgs/names
#Email SMTP Configuration
sourcemailid=
sourceemailpassword=
mail-smtp-auth=mail.smtp.auth
mail-smtp-starttls-enable=mail.smtp.starttls.enable
mail-smtp-host=mail.smtp.host
smtp-gmail-com=smtp.gmail.com
mail-smtp-port=mail.smtp.port
port=587
#Cron Email Configuration
cron-email-path =
cron-email-subject =
#Logging
log.location=/home/logs/session
management.endpoints.web.exposure.include=prometheus
session-qr-code-path=/home/ubuntu/projects/acdc-session/src/main/resources/templates/
After adding the necessary configuration now let us run the service.
docker build -t <servicename>:<versionname> . #update version in docker-compose file
docker compose up -d
gradle clean build
java -jar build/libs/<name of the jar file>
Now we can check the application on the localhost and the port 9092 defined in application.properties file and can access Swagger API document at http://localhost:9091/swagger-ui.html
wiki
Architecture
Configuration