Sage X3 Services developer studio installation

You need to install the Sage X3 Services developer studio to customize or extend your GraphQL APIs. Follow this procedure to do so.

  1. Download and unzip the developer studio on your machine.
  2. Install Visual Studio Code on your machine. You will use this integrated development environment (IDE) to build your applications, including the user interface pages.

    For Windows operating systems, install Visual Studio Code's system edition rather than the user edition to avoid access rights issues when developing.
    You can use another TypeScript IDE, but Sage only officially supports Visual Studio Code.
  3. The Extensibility framework uses Node.js. The developer studio's supported Node.js version is indicated in the .nvmrc file under the Sage X3 Services Developer studio root directory.

    You need to check the exact Node.js version mentioned in this file for each update of the developer studio and use that version.

    To manage Node.js installations and usage, use the nvm for Linux or nvm-windows for Windows Node version manager. Follow these steps to set your nvm up the first time:

    1. Download nvm or nvm-windows and install it.

      For Windows, nvm-windows is sensitive to directory paths containing spaces such as Program files. Install nvm-windows on a neutral, non-user directory that does not contain any spaces such as D:\Apps or C:\Tools\nvm. Directories such as C:\Users\xxx\AppData are not recommended.

      For Linux, set a neutral base directory for Node.js when you install nvm. For example, D:\Apps\nodejs or C:\Tools\nodejs. Do not use directories with spaces.

    2. Open a Visual Studio Code terminal and type the following commands.

      nvm install [version]
      nvm use [version]

      Where version is the Node.js version specified in the .nvmrc file.

      This installs and uses the supported Node.js version in the directory specified in your nvm during the setup or in the configuration files.

  4. Open the developer studio's root directory in Visual Studio Code. On Windows, you can right-click the root directory and select Open in VS Code or open it directly in Visual Studio Code.
  5. Open the Visual Studio Code terminal and run the following command to install the developer studio.
    1. On Windows:

      npm run clean:install:win
    2. On Unix:

      npm run clean:install:unix
  6. At the end of the installation script, the terminal can prompt you to update other components of the developer studio, such as the npm. You can run the indicated commands to update those components.
  7. Open the xtrem-config.yml configuration file and enter the settings to connect to Sage X3.
  8. xtrem-config.yml file example

    xtrem-config.yml example

You are ready to use your Sage X3 Services developer studio.