To use this demo, you will first need to create a Daily account. You will need your Daily API key, which can be found on the Developers page, if you want to create new rooms through the demo UI.
You can use existing Daily rooms in the demo by pasting the room URL into the input. The room URL should be in this format to be valid: https://domain-name.daily.co/room-name
, with daily-domain
changed to your domain, and room-name
changed to the name of the existing room you would like to use.
To run this demo locally:
- Install dependencies
npm install
- Start dev server
npm run serve
- Then open your browser and go to http://localhost:8080
OR...
If you want access to the Daily REST API (using the proxy as specified in netlify.toml
) as well as a more robust local dev environment, please do the following in this project's directory:
-
Deploy to your Netlify account
Note: You'll need your Daily API key handy for this step.
-
Install the Netlify CLI
npm i -g netlify-cli
-
Login to your account
netlify login
-
Rename
sample.env
to.env
and add your API key -
Start the dev server
netlify dev
Note: If the API proxy isn't working locally you may need to run
netlify build
first. This will put API key in thenetlify.toml
file, so make sure you don't commit this change.
npm run build
npm run lint
Lean more about this demo with our Vue+Daily Prebuilt tutorial on the Daily blog.