A user interface for the terminology editor
This is a Next.js project bootstrapped with
create-next-app
.
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.
Install dependencies
Run in yti-terminology-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-terminology-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.
You can start editing the page by modifying src/pages/index.tsx
. The page
auto-updates as you edit the file.
You can find more documentation in docs.