Skip to content

Latest commit

 

History

History
59 lines (40 loc) · 1.56 KB

README.md

File metadata and controls

59 lines (40 loc) · 1.56 KB

yti-datamodel-ui

A user interface for the datamodel 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

DATAMODEL_API_URL=http://localhost:9004/datamodel-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": "./datamodel-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.