![Development][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](https://github.com/grunergroup/gTT_APSwebViewer/releases) ### Docker Setup - clone the Repo - Create a _.env_ file in the project folder, and populae it with the snippet below, replacing `` and `` with your APS Client ID and Client Secret: ```bash APS_CLIENT_ID= APS_CLIENT_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. ```yml ports: - "127.0.0.1:808X:8080" ``` - edit the - Run the application, `docker compose up -d` in terminal - Open http://localhost:8080 ### NGINX Setup 1. Edit the `sudo nano /etc/nginx/nginx.conf`. ```js 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 2. 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 - [Link1](https://aps.autodesk.com/apis-and-services/viewer) - [Link2](https://aps.autodesk.com/developer/overview/viewer-sdk) - [Link3](https://aps.autodesk.com/en/docs/viewer/v7/developers_guide/overview/) ## 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 [DepICT]: https://img.shields.io/badge/DEP-ICT-brightgreen [DepICT-url]: https://gruner.sharepoint.com/sites/gn-su/SitePages/BSC_ICT.aspx [DepBIM]: https://img.shields.io/badge/DEP-BIM-orange [DepBIIM]: https://img.shields.io/badge/DEP-BIIM-orange [DepBIM-url]: https://gruner.sharepoint.com/sites/intranet/SitePages/en/Home.aspx [DepINFOM]: https://img.shields.io/badge/DEP-INFOMANAGEMENT-yellowgreen [DepINFOM-url]: https://gruner.sharepoint.com/sites/intranet/SitePages/en/Home.aspx [DepDATAM]: https://img.shields.io/badge/DEP-DATAMANAGEMENT-blue [DepDATAM-url]: https://gruner.sharepoint.com/sites/intranet/SitePages/en/Home.aspx [Integration]: https://img.shields.io/badge/-Integration-blue [Automation]: https://img.shields.io/badge/-Automation-brightgreen [Development]: https://img.shields.io/badge/-Development-yellow [Support]: https://img.shields.io/badge/-Support-red [Token]: https://img.shields.io/badge/-TOKEN-orange ## Development ### Prerequisites - [APS credentials](https://forge.autodesk.com/en/docs/oauth/v2/tutorials/create-app) - [Node.js](https://nodejs.org) (Long Term Support version is recommended) - Command-line terminal such as [PowerShell](https://learn.microsoft.com/en-us/powershell/scripting/overview) or [bash](https://en.wikipedia.org/wiki/Bash_(Unix_shell)) (should already be available on your system) > We recommend using [Visual Studio Code](https://code.visualstudio.com) which, among other benefits, > provides an [integrated terminal](https://code.visualstudio.com/docs/terminal/basics) as well. ## Troubleshooting ## License This sample is licensed under the terms of the [MIT License](http://opensource.org/licenses/MIT). Please see the [LICENSE](LICENSE) file for more details.