No description
Find a file
2024-11-08 10:42:24 +01:00
.vscode First 2024-11-08 07:51:28 +01:00
img gruner logo added 2024-11-08 07:54:26 +01:00
routes First 2024-11-08 07:51:28 +01:00
services First 2024-11-08 07:51:28 +01:00
wwwroot docker fixed 2024-11-08 09:32:57 +01:00
.env_example .env_example added 2024-11-08 08:12:38 +01:00
.gitignore gitignore updated 2024-11-08 08:15:48 +01:00
config.js First 2024-11-08 07:51:28 +01:00
docker-compose.yml i'm a moron 2024-11-08 10:42:24 +01:00
Dockerfile i'm a moron 2024-11-08 10:42:24 +01:00
LICENSE First 2024-11-08 07:51:28 +01:00
package-lock.json First 2024-11-08 07:51:28 +01:00
package.json First 2024-11-08 07:51:28 +01:00
README.md First 2024-11-08 07:51:28 +01:00
server.js First 2024-11-08 07:51:28 +01:00
start.sh i'm a moron 2024-11-08 10:42:24 +01:00
thumbnail.png First 2024-11-08 07:51:28 +01:00

Development


Logo

Website viewer APS

------ Website viewer Autodesk Platform Services driven -----

Table of Contents
  1. Project Description
  2. Getting Started
  3. Contributing
  4. Contact

Project Description

APS model viewer implementation for marketing purposes.

(back to top)

Getting Started

To get the latest compiled version, go to: Github Releases

Docker Setup

  • clone the Repo
  • Create a .env file in the project folder, and populae it with the snippet below, replacing <client-id> and <client-secret> with your APS Client ID and Client Secret:
APS_CLIENT_ID=<INSERT ID>
APS_CLIENT_SECRET=<INSERT SECRET>
APS_BUCKET=
presetModel=BPZ_00_GRU_SIT_STR_MOD_EXI_Powerhouse.rvt # Insert filename of the model
  • edit docker-compose.yml and change the port.
    ports:
      - "127.0.0.1:808X:8080"

NGINX Setup

  1. Edit the sudo nano /etc/nginx/nginx.conf.
    server {
        listen       80;
        server_name  localhost;

        #charset koi8-r;

        #access_log  /var/log/nginx/host.access.log  main;

        location / {
                proxy_pass http://127.0.0.1:8080;
        }

        location ~/test(.*)$ {
            proxy_set_header X-Real-IP  $remote_addr;
            proxy_set_header X-Forwarded-For $remote_addr;
            proxy_set_header Host $host;
            proxy_pass http://127.0.0.1:8081/$1;


        }
...
  • copy the location ~/test..
  • adjust the path to your liking
  • adjust proxy_pass http://127.0.0.1:808X/$1;port to the port configured in your docker-compose.yml
  1. reload nginx to activate the new configuration sudo systemctl reload nginx.service.

The viewer should now be displaying the Model on the configured URL.

ASP Documentation

Contributing

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

Authors

Daniele Viero - daniele.viero@gruner.ch

David Friedrich - david.friedrich@gruner.ch

Development

Prerequisites

We recommend using Visual Studio Code which, among other benefits, provides an integrated terminal as well.

Troubleshooting

License

This sample is licensed under the terms of the MIT License. Please see the LICENSE file for more details.