Skip to content
Snippets Groups Projects
Select Git revision
  • 2a1f1bd53e3445aafa881e1209703dfa7de9c918
  • master default protected
  • dev protected
  • 551-init-broker-service-permissions
  • release-1.10 protected
  • 549-test-oai-pmh
  • 545-saving-multiple-times-breaks-pid-metadata
  • release-1.9 protected
  • 499-standalone-compute-service-2
  • 539-load-tests
  • hotfix/helm-chart
  • luca_ba_new_interface
  • 534-bug-when-adding-access-to-user-that-is-not-registered-at-dashboard-service
  • release-1.8 protected
  • 533-integrate-semantic-recommendation
  • feature/openshift
  • 518-spark-doesn-t-map-the-headers-correct
  • 485-fixity-checks
  • 530-various-schema-problems-with-subsets
  • release-1.7 protected
  • fix/auth-service
  • v1.10.1 protected
  • v1.10.0-rc13 protected
  • v1.10.0-rc12 protected
  • v1.10.0-rc11 protected
  • v1.10.0-rc10 protected
  • v1.10.0-rc9 protected
  • v1.10.0-rc8 protected
  • v1.10.0-rc7 protected
  • v1.10.0-rc6 protected
  • v1.10.0-rc5 protected
  • v1.10.0-rc4 protected
  • v1.10.0-rc3 protected
  • v1.10.0-rc2 protected
  • v1.10.0rc1 protected
  • v1.10.0rc0 protected
  • v1.10.0 protected
  • v1.9.3 protected
  • v1.9.2 protected
  • v1.9.2-rc0 protected
  • v1.9.1 protected
41 results

fda-ui

fda-ui

Prerequisit

We use Ubuntu 20.04 LTS.

Build environment: yarn

Install yarn:

First we need curl:

sudo apt install curl

Add yarn GPG-Key

curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -

Add repo

echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list

Install yarn

sudo apt update && sudo apt install yarn

Run yarn

$ yarn

which gives yarn install v1.22.5

Nuxt

With yarn installed, install nuxt.js

See https://nuxtjs.org/

yarn add nuxt

Prepare

Configure the .env file for the IP and port running or run through terminal:

API=http://fda-gateway-service:9095 npm --prefix ./fda-ui run dev

Of course you need to add fda-gateway-service to your /etc/hosts file for Docker "DNS" to your containers:

172.29.0.6	fda-gateway-service

Build Setup

# install dependencies
$ yarn install

# serve with hot reload at localhost:3000
$ yarn dev

# build for production and launch server
$ yarn build
$ yarn start

# generate static project
$ yarn generate

For detailed explanation on how things work, check out Nuxt.js docs.