Skip to content
Snippets Groups Projects
Select Git revision
  • 97c458063921017b9f728c15d2e22d3386f96a88
  • master default protected
  • dev-lkugler
  • teaching-2024
  • old_config_2023-05 protected
  • v2025.2
  • v2024.6
  • v2024.2.20
8 results

docs

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.