Skip to content

eclipse-emfcloud/emfcloud-modelserver-theia

Repository files navigation

Eclipse EMF.cloud Model Server Theia build-status

This projects offers the Model Server integration for Typescript clients.

For more information, please visit the EMF.cloud Website.

If you have questions, contact us on our discussions page and have a look at our communication and support options.


Available via NPM build-status-server

Project Structure

This project provides a Theia integration for the Model Server as Typescript API as well as an example implementation of said API.

  • The Typescript API is provided in modelserver-theia
  • A custom example implementation is provided in example/dev-example and example/coffee-theia

Used Projects

This project relies on the following projects:

Prerequisites

Install nvm.

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.39.1/install.sh | bash

Install npm and node.

nvm install 16.15.1
nvm use 16.15.1

Install yarn.

npm install -g yarn

Getting started

Clone this repository and build all packages via the VSCode task Build all packages or via command line:

yarn install

VSCode tasks can be accessed via via menu Terminal > Run Task... or shortcut Ctrl+T.

Next, if you pre-built version of the Model Server you can download it via the following command or the VSCode Task Download latest Model Server standalone JAR. If you run a Model Server instance already, this step can be skipped.

yarn download:server

Running the browser example

Start the Theia application via the VSCode task Start Theia Browser Backend or via command line:

yarn start

Then run the VSCode task Open Theia Example in Browser or point your browser to localhost:3000.

Developing with the browser example

Start watching all packages via the VSCode task Watch all packages or via command line:

yarn watch

Launch the Start Browser Backend and Launch Browser Frontend configurations from the Run view in VSCode.