-
In terminal, run the following command to clone the repo:
$ git clone https://github.com/zoom/meetingsdk-auth-endpoint-sample.git
-
In terminal, cd into the cloned repo:
$ cd meetingsdk-auth-endpoint-sample
-
Then install the dependencies:
$ npm install
-
Create an environment file to store your Meeting SDK credentials:
$ touch .env
-
Add the following code to the
.env
file, and insert your Zoom Meeting SDK credentials:ZOOM_MEETING_SDK_KEY=MEETING_SDK_KEY_HERE ZOOM_MEETING_SDK_SECRET=MEETING_SDK_SECRET_HERE
-
Save and close
.env
. -
Start the server:
$ npm run start
-
In terminal, cd into the cloned repo:
$ cd meetingsdk-next-sample
-
Then install the dependencies:
$ npm install
-
Fill some variable in
./src/app/page.js
:const authEndpoint = "http://localhost:4000"; const sdkKey = ""; const meetingNumber = ""; const passWord = ""; const role = 0; const userName = "React"; const userEmail = ""; const registrantToken = ""; const zakToken = ""; var leaveUrl = "http://localhost:3000";
-
Start the server:
$ npm run dev