__
- Software and Package Requirements
- Check Installation Status
- Cloning the Repository
- Setting up Matterport SDK Key
- Setting up the Project
Ensure the following software is installed on your machine:
-
Visual Studio Code
Download Link -
Node.js (Any version should work)
Download Link -
Git
Download Link
-
Open Command Prompt on Windows.
-
Run the following commands:
- Check Visual Studio Code
code -v
- You should see the version number of Visual Studio Code.
- Check Node.js
node -v
- You should see the version number of Node.js.
- Check Git
git -v
- You should see the version number of Git.
If all three commands return version numbers, your installations were successful. Outputs should look similar to below:
- Check Visual Studio Code
- Navigate to the folder in your directory where you want to clone the project. Ensure there are no folder restrictions.
- In the folder's path bar, type
cmd
and press Enter.- A new terminal instance will open at that location.
- Copy the repository URL.
- In the terminal, run the following command to clone the repository:
git clone https://github.com/nbbj-digital/matterport-workshop.git
- Navigate to the folder:
cd matterport-workshop
- Launch VSCode at the folder location:
code .
-
Sign up for a Matterport account using your phone
The web URL for signup may be broken. Use this link: Matterport Signup -
Log in to Matterport
After logging in, navigate to Settings -> Developer Settings.
-
SDK Key Management
Scroll down to the SDK Key Management section. -
Add a new SDK Key
Click the + Add an SDK Key button. -
Name your SDK Key
Use the namelocalhost
for local development. -
Generate the SDK Key
Once named, generate the key and keep it handy for the next steps. -
Add port name
Once SDK key is generated, Click 'Edit' and add 5173 Port. Click Update
- Open Terminal in VSCode
Navigate to Terminal -> New Terminal to open a terminal at the folder location. - Ensure you are at the folderpath where you have cloned the repository
- Navigate to the
index.html
file
On line 26, replace the placeholder"sdk-key"
with your generated SDK key.
-
Install dependencies
Run the following command to install all necessary packages:npm install
npx matterport-assets static
- You should see a 'static' folder is created.
npm run dev
-
Launch the app
Ctrl-click on the link http://localhost:5173/ in the terminal to launch the app -
Go to the lobby
Once the app loads, click on the “Go to lobby” button located at the top of the page. -
Verify the app functionality
If the view switches, your app is working correctly!