This repository contains code for a Appwrite Cloud and Vonage Video demo application
- A Vonage Video API Account.
- An Appwrite Cloud Account.
- The Appwrite CLI tool
- A ngrok account. We will use this to access our video app on many devices.
- Sign up for a free Vonage Video API Account.
- Create a new Video Project:
- Go to "Projects", "Create New Project"
- Click "Create Custom Project"
- Name the application "Vonage Appwrite Demo"
- Click "Create"
- Copy down the API Key and Secret
- Sign up for a free Appwrite Cloud Account
- Create a new Project:
- Name the project "Vonage Video Demo", and click "Create"
- Click on "Web App" to add a platform
- Name the app "Vonage Video"
- Enter '*' as the Hostname
- Click "Next", and then "Skip Optional Steps"
- Click on "Project ID" at the top to copy down the project ID
- Create an Appwrite Cloud API Key:
- Click on "Settings", and then "View API Keys"
- Click on "Create API Key"
- Enter "Functions" for the name, and click "Next"
- Toggle "Auth", "Database", "Functions", and "Storage"
- Click "Create"
- Click on "API Key Secret" at the top to copy down the Appwrite API Key
- Copy
appwrite.json.dist
toappwrite.json
- Edit
appwrite.json
for your demo:- Enter the project ID from before into the
projectId
key - Enter your Vonage API Key into
functions.variables.VONAGE_VIDEO_API_KEY
- Enter your Vonage API Secret into
functions.variables.VONAGE_VIDEO_API_SECRET
- Enter your Appwrite API Key into
functions.variables.APPWRITE_FUNCTION_API_KEY
- Enter the project ID from before into the
- Copy
.env.dist
to.env
- Enter your Appwrite Project ID into
VITE_APPWRITE_PROJECT_ID
- Enter your Appwrite Project ID into
- Run the demo with
npm run dev
- Access the page at
http://localhost:5173