- Please first make sure that you have installed Node.js
and
npm
on your machine. (We recommend using theLTS
version 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.yaml
file and usenpm
oryarn
instead.
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_SECRET
Use the following command to start the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:5173 with your browser to see the result.