Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Navigate to the sample API server location. On Linux: /opt/graebert-gmbh/Kudo-Server/API_serverRun “npm install” Open the server subfolder

  2. Run “npm installto install server

  3. Run “npm npm install -g swagger” swaggerto install swagger tool globally

  4. Run “swagger swagger project start” startto run server

The sample API server is now accessible and runs on port 3000. The sample API server provides access to local files on the host of the sample API server. To test the server, access the sample files shipped inside the files subfolder with with server or any other accessible file:

...

The URLs to open a drawing should be likedepend on which port and path you selected during server install:

Editor:

http://localhost:8081/editor?server=http://localhost:3000&file=Construciton=Construction.dwg

http://localhost?server=http://localhost:3000&file=Construction.dwg

Viewer:

http://localhost:8081/editor?server=http://localhost:3000&file=ConstrucitonConstruction.dwg&access=view

http://localhost?server=http://localhost:3000&file=Construction.dwg&access=view

NOTE: The file identifier does not have to be an actual filename and can be any arbitrary identifier that is passed from editor back to the backend.

...