Skip to content

eclipse-emfcloud/modelserver-node

Repository files navigation

Eclipse EMF.cloud Node.js Model Server build-status

The Node.js Model Server is a façade in front of the Java Model Server that provides an extensible environment for Javascript-based plug-ins. Plug-in contributions are supported for

  • custom command providers
  • validation providers
  • trigger providers that add side-effects to edit requests

Setup

Install nvm. Note that 0.36 may not be the latest version, so check that first and substitute the current version in the URL.

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

Install npm and node.

nvm install 12.18.4
nvm use 12.18.4

Install yarn.

npm install -g yarn

Install dependencies and build the Model Server and related packages.

yarn

Run

To run the Model Server example that demonstrates customization plug-ins:

yarn start

The server will listen for incoming requests on port 8082 and will connect to the Upstream Model Server on port 8081 on the local host. This upstream server must be started separately; see the EMF.Cloud Java Model Server project for details.

For verbose logging output, run it so:

yarn start -v

For information about other options:

yarn start --help

License

This program and the accompanying materials are made available under the terms of the Eclipse Public License v. 2.0 which is available at https://www.eclipse.org/legal/epl-2.0.

This Source Code may also be made available under the following Secondary Licenses when the conditions for such availability set forth in the Eclipse Public License v. 2.0 are satisfied: MIT.

SPDX-License-Identifier: EPL-2.0 OR MIT

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published