Skip to content

Latest commit

 

History

History

terminology-ui

yti-terminology-ui

A user interface for the terminology editor

This is a Next.js project bootstrapped with create-next-app.

Installing node.js

This app runs on Node.js. You need to install it before you can continue.

The easiest way to install Node.js is to use nvm. We have defined Node.js version in .nvmrc so you just need to run nvm install and nvm use to install the correct version.

If you can't use nvm, check current Node.js version from .nvmrc and install it manually.

Getting Started

First install dependencies by running the following in yti-ui root folder:

npm install

Create file .env.local to the project root directory and add the following lines

TERMINOLOGY_API_URL=http://localhost:9103/terminology-api
REWRITE_PROFILE=local
SECRET_COOKIE_PASSWORD=<random string min 32 characters>

Add the following to .vscode/settings.json in [yti-ui] root directory. This is necessary for VSCodes eslint to work correctly.

{
  "eslint.workingDirectories": [
    { "directory": "./terminology-ui", "changeProcessCWD": true }
  ]
}

Run terminology-api backend application (and all its dependencies) for example by using yti-compose

Run the development server:

npm run dev

Open http://localhost:3000 with your browser to see the result.

Troubleshooting and more documentation

You can find more documentation in docs.