Giter Club home page Giter Club logo

resource-catalogue's Introduction

Resource Catalogue

What is this project about?

Local deployment:

Requirements:

  • Java 8
  • Maven
  • Tomcat 8.5
  • ActiveMQ 5.14.0
  • Elasticsearch 7.4.2
  • PostgreSQL 9.5 or greater

Clone

git clone https://github.com/madgeek-arc/resource-catalogue.git

Build

mvn clean package

PostgreSQL - Create DB

CREATE USER <user> WITH PASSWORD 'your-password'; -- or use an existing user

CREATE DATABASE db WITH OWNER <user>;
  1. Log in to the created db using: sudo -u postgres psql db
  2. Execute the following command: CREATE EXTENSION tablefunc;

Deploy

  1. Ensure that PostgreSQL, ActiveMQ and Elasticsearch are up and running.

  2. Create a file named registry.properties inside the /lib folder of your Tomcat installation and populate it with the Application Properties Example (or edit the application.properties file of the project before you Build it).

  3. Deploy the webapp on Tomcat.

  4. Before you begin using it for the first time, you must add the resourceTypes.


Add resourceTypes (only the first time you deploy the project)
  1. Navigate to eic/eic-registry/src/main/resources/resourceTypes

  2. Execute bash loadResourceTypes.sh localhost (replace localhost with your host)


Application Properties Example
##########################
## Mandatory Properties ##
##########################
fqdn=localhost
platform.root=http://${fqdn}/
registry.host=http://${fqdn}:8080/eic-registry/


## DB Properties ##
jdbc.url=jdbc:postgresql://${fqdn}:5432/db
jdbc.username=<user>
jdbc.password=<your-password>

## Elasticsearch Properties ##
elasticsearch.url=${fqdn}
elasticsearch.port=9300
elasticsearch.cluster=<clusterName>

## JMS Properties ##
jms.host=tcp://${fqdn}:61616
jms.prefix=<local>

## eic Login Properties ##
webapp.homepage=http://localhost:3000
webapp.oidc.login.redirectUris=http://localhost:8080/eic-registry/openid_connect_login

## Openid Connect Properties ##
oidc.issuer=
oidc.authorization=
oidc.token=
oidc.userinfo=
oidc.revocation=
oidc.jwk=

oidc.clientId=
oidc.clientSecret=
oidc.scopes=openid, profile, email


#########################
## Optional Properties ##
#########################

## Project Properties ##
project.admins[email protected], [email protected]
project.debug=false
project.name=My Catalogue
project.registration.email[email protected]

## sync ##
sync.host=
sync.token.filepath=

## Mail Properties ##
mail.smtp.auth=
mail.smtp.host=
mail.smtp.user=
mail.smtp.password=
mail.smtp.port=
mail.smtp.protocol=
mail.smtp.ssl.enable=

## Enable/Disable Emails ##
emails.send=false
emails.send.notifications=false


## Matomo Properties ##
matomoHost=
matomoToken=
matomoSiteId=
matomoAuthorizationHeader=

resource-catalogue's People

Contributors

antleb avatar courado avatar dependabot[bot] avatar dheid avatar jbalasis avatar jodee90 avatar mzouros avatar plambros avatar spyroukostas avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.