https://github.com/petrbroz/forge-simple-viewer-dotnet
https://github.com/petrbroz/forge-simple-viewer-dotnet
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/petrbroz/forge-simple-viewer-dotnet
- Owner: petrbroz
- License: mit
- Created: 2021-08-18T13:58:13.000Z (about 4 years ago)
- Default Branch: develop
- Last Pushed: 2022-08-26T16:01:42.000Z (about 3 years ago)
- Last Synced: 2025-05-16T00:19:05.435Z (5 months ago)
- Language: C#
- Size: 967 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# forge-simple-viewer-dotnet

[](https://dotnet.microsoft.com/en-us/download/dotnet/6.0)
[](https://opensource.org/licenses/MIT)Simple [Autodesk Forge](https://forge.autodesk.com) application built by following
the [Simple Viewer](https://forge-tutorials.autodesk.io/tutorials/simple-viewer/) tutorial
from https://forge-tutorials.autodesk.io.
## Development
### Prerequisites
- [Forge application](https://forge.autodesk.com/en/docs/oauth/v2/tutorials/create-app)
- [.NET 6](https://dotnet.microsoft.com/en-us/download/dotnet/6.0)
- Terminal (for example, [Windows Command Prompt](https://en.wikipedia.org/wiki/Cmd.exe)
or [macOS Terminal](https://support.apple.com/guide/terminal/welcome/mac))### Setup & Run
- Clone this repository
- Install dependencies: `dotnet restore`
- Setup environment variables:
- `FORGE_CLIENT_ID` - your Forge application client ID
- `FORGE_CLIENT_SECRET` - your Forge application client secret
- `FORGE_BUCKET` (optional) - name of Forge bucket to store your designs in
- Run the server: `dotnet run`> When using [Visual Studio Code](https://code.visualstudio.com),
you can specify the env. variables listed above in a _.env_ file in this
folder, and run & debug the application directly from the editor.## Troubleshooting
### Invalid active developer path
If you're getting `invalid active developer path` errors, please follow the steps
explained in https://apple.stackexchange.com/questions/254380/why-am-i-getting-an-invalid-active-developer-path-when-attempting-to-use-git-a.### Dev-certs errors
If you're seeing errors related to `dev-certs`, try cleaning any existing certificates
as explained in https://docs.microsoft.com/en-us/dotnet/core/additional-tools/self-signed-certificates-guide,
and on macOS and Windows systems, do not forget to use the `--trust` switch.If you have any other question, please contact us via https://forge.autodesk.com/en/support/get-help.
## 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.