Giter Club home page Giter Club logo

adex-voc-server's Introduction

IUDX Vocabulary Server

NOTE: Better readme and documentation to come soon

Prerequisites

  1. Ensure you have mvn locally installed for building the backend
  2. Ensure you have angular and npm locally installed for building the UI
  3. Clone this repo and update submodule git submodule update --init --recursive git pull --recurse-submodules
  4. Build the image docker build ./

Instructions to run

  1. Modify the configuration options in ./config/vocserver.json. This will need jks files for server TLS.

  2. Ensure CONFIG_SERVER_ID is a valid server ID conforming with IUDX.

  3. Modify src/app/appSettings.ts and add appropriate BASE_URL corresponding to your domain name.

  4. Install ui dependencies and build cd ui/ npm install ng build --deploy-url /static/

  5. Turn on the mongodb docker For local docker-compose up -d db-local or For production docker-compose up -d db

  6. From the project root folder For local mvn clean package -Dmaven.test.skip=true && java -jar target/vocserver-1.0-fat.jar -conf config/vocserver.json For production mvn clean package -Dmaven.test.skip=true && docker-compose up -d server

Making a jks

  1. Obtain PEM from certbot sudo certbot certonly --manual --preferred-challenges dns -d demo.example.com
  2. Concat all pems into one file sudo cat /etc/letsencrypt/life/demo.example.com/*.pem > fullcert.pem
  3. Convert to pkcs format openssl pkcs12 -export -out fullcert.pkcs12 -in fullcert.pem
  4. Create new temporary keystore using JDK keytool, will prompt for password keytool -genkey -keyalg RSA -alias vockeystore -keystore vockeystore.ks keytool -delete -alias vockeystore -keystore vockeystore.ks
  5. Make JKS, will prompt for password keytool -v -importkeystore -srckeystore fullcert.pkcs12 -destkeystore vockeystore.ks -deststoretype JKS
  6. Store JKS in config directory and edit the keyfile name and password entered in previous step

Getting Tokens for insertion requests

  1. Ensure a JKS per the above procedure is made for IUDX Resource Server Certificates (Class 1)
  2. Ensure a Provider (Class 3 certificate) has given you access to /*
  3. Request for a token using the auth server token request api using your class 2 certificate
  4. Use token as a header field "token": ""

adex-voc-server's People

Contributors

rraks avatar rnaaz avatar isunitha98selvan avatar yashpatki 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.