- Please first make sure that you have installed Node.js
and
npmon your machine. (We recommend using theLTSversion of Node.js) - If you are a macOS or linux user, you can use this command to install node.js and npm:
nvm use- Then, you can install the dependencies:
npm install
# or
yarn install
# or
pnpm install- Since this project uses
pnpm, you can use pnpm to install the dependencies. (We recommend usingpnpm) - If you didn't want to use
pnpm, you can remove thepnpm-lock.yamlfile and usenpmoryarninstead.
You can find more information about how to create a developer account in BIMobject Embed API Demo App.
Then use the Client ID and Client Secret to create a .env.local file in
the root directory of this project. The .env.local file should look like this:
VITE_CLIENT_ID=YOUR_CLIENT_ID
VITE_CLIENT_SECRET=YOUR_CLIENT_SECRETUse the following command to start the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun devOpen http://localhost:5173 with your browser to see the result.