Daily Prebuilt demo
5 |Start demo with a new unique room or paste in your own room URL
6 |Room could not be created
11 |or
12 | 24 | 25 |├── sample.env ├── vue-prebuilt.png ├── public ├── favicon.ico └── index.html ├── babel.config.js ├── src ├── assets │ ├── logo.png │ ├── favicon.png │ ├── mic_icon.png │ ├── camera_icon.png │ ├── github_logo.png │ ├── new_tab_icon.png │ └── screenshare_icon.png ├── main.js ├── api.js ├── App.vue └── components │ ├── Header.vue │ ├── Controls.vue │ └── Home.vue ├── vue-prebuilt-home.png ├── .gitignore ├── netlify.toml ├── package.json ├── LICENSE ├── README.md ├── CONTRIBUTING.md └── CODE_OF_CONDUCT.md /sample.env: -------------------------------------------------------------------------------- 1 | VUE_APP_DAILY_API_KEY= -------------------------------------------------------------------------------- /vue-prebuilt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daily-demos/vue-daily-prebuilt/HEAD/vue-prebuilt.png -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daily-demos/vue-daily-prebuilt/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: [ 3 | '@vue/cli-plugin-babel/preset' 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /src/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daily-demos/vue-daily-prebuilt/HEAD/src/assets/logo.png -------------------------------------------------------------------------------- /vue-prebuilt-home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daily-demos/vue-daily-prebuilt/HEAD/vue-prebuilt-home.png -------------------------------------------------------------------------------- /src/assets/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daily-demos/vue-daily-prebuilt/HEAD/src/assets/favicon.png -------------------------------------------------------------------------------- /src/assets/mic_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daily-demos/vue-daily-prebuilt/HEAD/src/assets/mic_icon.png -------------------------------------------------------------------------------- /src/assets/camera_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daily-demos/vue-daily-prebuilt/HEAD/src/assets/camera_icon.png -------------------------------------------------------------------------------- /src/assets/github_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daily-demos/vue-daily-prebuilt/HEAD/src/assets/github_logo.png -------------------------------------------------------------------------------- /src/main.js: -------------------------------------------------------------------------------- 1 | import { createApp } from 'vue' 2 | import App from './App.vue' 3 | 4 | createApp(App).mount('#app') 5 | -------------------------------------------------------------------------------- /src/assets/new_tab_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daily-demos/vue-daily-prebuilt/HEAD/src/assets/new_tab_icon.png -------------------------------------------------------------------------------- /src/assets/screenshare_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daily-demos/vue-daily-prebuilt/HEAD/src/assets/screenshare_icon.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | /dist 4 | 5 | 6 | .env 7 | # local env files 8 | .env.local 9 | .env.*.local 10 | 11 | # Log files 12 | npm-debug.log* 13 | yarn-debug.log* 14 | yarn-error.log* 15 | pnpm-debug.log* 16 | 17 | # Editor directories and files 18 | .idea 19 | .vscode 20 | *.suo 21 | *.ntvs* 22 | *.njsproj 23 | *.sln 24 | *.sw? 25 | -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 |
6 |
19 |
4 |
5 | ## Requirements
6 |
7 | To use this demo, you will first need to [create a Daily account](https://dashboard.daily.co/signup). You will need your Daily API key, which can be found on the [Developers](https://dashboard.daily.co/developers) page, if you want to create new rooms through the demo UI.
8 |
9 | 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.
10 |
11 |
12 |
13 | ---
14 |
15 | ## Running locally
16 |
17 | To run this demo locally:
18 |
19 | 1. Install dependencies `npm install`
20 | 2. Start dev server `npm run serve`
21 | 3. Then open your browser and go to http://localhost:8080
22 |
23 | OR...
24 |
25 | ## Running using Netlify CLI
26 |
27 | 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:
28 |
29 | 1. Deploy to your Netlify account
30 |
31 | [](https://app.netlify.com/start/deploy?repository=https://github.com/daily-demos/vue-daily-prebuilt)
32 |
33 | Note: You'll need your [Daily API key](https://dashboard.daily.co/developers) handy for this step.
34 |
35 | 2. Install the Netlify CLI `npm i -g netlify-cli`
36 | 3. Login to your account `netlify login`
37 | 4. Rename `sample.env` to `.env` and add your API key
38 | 5. Start the dev server `netlify dev`
39 |
40 | > Note: If the API proxy isn't working locally you may need to run `netlify build` first. This will put API key in the `netlify.toml` file, so make sure you don't commit this change.
41 |
42 | ### Compile and minify for production
43 |
44 | ```
45 | npm run build
46 | ```
47 |
48 | ### Lint and fix files
49 |
50 | ```
51 | npm run lint
52 | ```
53 |
54 | ---
55 |
56 | ## Related blog posts/tutorials
57 |
58 | Lean more about this demo with our [Vue+Daily Prebuilt tutorial](https://www.daily.co/blog/build-a-video-chat-app-with-vue-and-daily-prebuilt/) on the [Daily blog](https://www.daily.co/blog/).
59 |
--------------------------------------------------------------------------------
/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | # Contributing
2 |
3 | Thank you for looking into contributing to `daily-demos`! We want these projects to help people experiment with Daily more quickly. We especially welcome any contributions that help us make existing demos easier to understand, improve demos' instructions and descriptions, and we're especially excited about any new demos that highlight unique ways to use the [Daily API](https://docs.daily.co/reference).
4 |
5 | **Before contributing:**
6 |
7 | - [Read our code of conduct](#read-our-code-of-conduct)
8 |
9 | **How to contribute:**
10 |
11 | - [Open or claim an issue](#open-or-claim-an-issue)
12 | - [Open a pull request](#open-a-pull-request)
13 | - [Contribute a new demo project](#contribute-a-new-demo-project)
14 |
15 | ## Before contributing
16 |
17 | ### Run demo app locally
18 |
19 | Please follow the instructions in `README.md`.
20 |
21 | ### Read our code of conduct
22 |
23 | We use the [Contributor Covenant](https://www.contributor-covenant.org/) for our Code of Conduct. Before contributing, [please read it](CODE_OF_CONDUCT.md).
24 |
25 | ## How to contribute
26 |
27 | ### Open or claim an issue
28 |
29 | #### Open an issue
30 |
31 | Today we work off two main issue templates: _bug reports_ and _demo/feature requests_.
32 |
33 | _Bug reports_
34 |
35 | Before creating a new bug report, please do two things:
36 |
37 | 1. If you want to report a bug you experienced while on a Daily call, try out these [troubleshooting tips](https://help.daily.co/en/articles/2303117-top-troubleshooting-tips) to see if that takes care of the bug.
38 | 2. If you're still seeing the error, check to see if somebody else has [already filed the issue](https://github.com/daily-demos/vue-daily-prebuilt/issues) before creating a new one.
39 |
40 | If you've done those two things and need to create an issue, we'll ask you to tell us:
41 |
42 | - What you expected to happen
43 | - What actually happened
44 | - Steps to reproduce the error
45 | - Screenshots that illustrate where and what we should be looking for when we reproduce
46 | - System information, like your device, OS, and browser
47 | - Any additional context that you think could help us work through this
48 |
49 | _Demo/feature requests_
50 |
51 | We're always happy to hear about new ways you'd like to use Daily. If you'd like a demo that we don't have yet, we'll ask you to let us know:
52 |
53 | - If the demo will help you solve a particular problem
54 | - Alternative solutions you've considered
55 | - Any additional context that might help us understand this ask
56 |
57 | #### Claim an issue
58 |
59 | All issues labeled `good-first-issue` are up for grabs. If you'd like to tackle an existing issue, feel free to assign yourself, and please leave a comment letting everyone know that you're on it.
60 |
61 | ### Open a pull request
62 |
63 | - If it's been a minute or if you haven't yet cloned, forked, or branched a repository, GitHub has some [docs to help](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests).
64 | - When creating commit messages and pull request titles, please follow the [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) standard.
65 |
66 | ### Contribute a new demo project
67 |
68 | If you've built a project on Daily that you want to share with other developers, we'd be more than happy to help spread the word.
69 |
70 | To add a new demo project:
71 |
72 | Open a PR in [awesome-daily](#) and add a link to your project.
73 |
--------------------------------------------------------------------------------
/src/components/Controls.vue:
--------------------------------------------------------------------------------
1 |
2 | 15 | You can also create your own meeting controls using daily-js methods 16 |
17 |Start demo with a new unique room or paste in your own room URL
6 |Room could not be created
11 |or
12 | 24 | 25 |