Initializing SDK

To install Renderer, complete the steps below.

Important To get authenticated and access a private package hosted on GitLab, a GitLab token is required. To get a token, please contact us. Once you receive a token, keep it secure and do not share it publicly.

Step 1: Create an .npmrc file

In your project’s root directory (at the same level as package.json), create a file named .npmrc. This file will be used to configure the registry settings for downloading the Renderer package.

Step 2: Add the GitLab registry configuration

  • Open the newly created .npmrc file in a text editor.

  • Copy and paste the following configuration into the file:

    @seatmap.pro:registry=https://gitlab.com/api/v4/projects/32104225/packages/npm/ //gitlab.com/api/v4/projects/32104225/packages/npm/:_authToken=HERE_IS_YOUR_GITLAB_TOKEN

  • Replace HERE_IS_YOUR_GITLAB_TOKEN with the GitLab token provided to you.

Step 3: Install the package and run the project

Run the following command to install the Renderer package:

npm install @seatmap.pro/booking-renderer

Once the installation is complete, start or build your project as usual.