https://github.com/petrbroz/forge-svelte-template
Minimal template for Autodesk Forge apps built with Svelte and Express.js.
https://github.com/petrbroz/forge-svelte-template
Last synced: about 2 months ago
JSON representation
Minimal template for Autodesk Forge apps built with Svelte and Express.js.
- Host: GitHub
- URL: https://github.com/petrbroz/forge-svelte-template
- Owner: petrbroz
- Created: 2022-03-07T15:12:10.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-03-07T15:12:30.000Z (over 3 years ago)
- Last Synced: 2025-05-16T00:19:09.517Z (5 months ago)
- Language: Svelte
- Size: 18.6 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# forge-svelte-template
Minimal template for [Autodesk Forge](https://forge.autodesk.com) applications built with [Svelte](https://svelte.dev)
on the client side and [Express.js](https://expressjs.com/) on the server side.## Prerequisites
- Forge app credentials (see [tutorial](https://forge.autodesk.com/en/docs/oauth/v2/tutorials/create-app))
- [Node.js](https://nodejs.org/en/download) (preferrably the LTS version) and [Yarn](https://yarnpkg.com/getting-started/install)## Running locally
- Clone this repository
- Install dependencies: `yarn install`
- Configure the following environment variables:
- `FORGE_CLIENT_ID` - client ID of your Forge application
- `FORGE_CLIENT_SECRET` - client secret of your Forge application
- `FORGE_BUCKET` - an existing Forge bucket with models to preview
- Run the application: `yarn run dev` (if you want to auto-rebuild client side code on changes)
or simply `yarn run serve`> Tip: if you are using [Visual Studio Code](https://code.visualstudio.com), store the environment variables
> in a _.env_ file in the project folder, use the launch configuration in defined in [./.vscode/launch.json](./.vscode/launch.json).