Select the types of activity you want to include in your feed.
[READ-ONLY] Mirror of https://github.com/flo-bit/youtube-party-dj. democratic youtube player, everyone can vote and add songs, uni project, made with uix
···11+Copyright 2024 - youtube party dj team
22+33+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
44+55+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
66+77+THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
···11+# youtube party dj
22+33+play a youtube queue on one device and other devices can add songs to the queue, as well as vote on songs. highest voted song plays next. wip.
44+55+Made with [UIX](https://uix.unyt.org/).
66+77+## demo
88+99+short demo video (left player, right a client)
1010+1111+1212+https://github.com/flo-bit/youtube-party-dj/assets/45694132/ac43fc09-d47f-4611-9991-0aa098f1105a
1313+1414+1515+## development
1616+1717+1. clone the repository
1818+1919+```bash
2020+git clone https://github.com/flo-bit/youtube-party-dj.git
2121+```
2222+2323+2. install [deno](https://docs.deno.com/runtime/manual/getting_started/installation)
2424+2525+3. install uix
2626+2727+```bash
2828+deno install --import-map https://cdn.unyt.org/uix/importmap.json -Aq -n uix https://cdn.unyt.org/uix/run.ts
2929+```
3030+3131+4. install [node.js and npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) if you haven't already
3232+3333+5. install node modules, run this in the root directory of the project:
3434+3535+```bash
3636+npm install
3737+```
3838+3939+6. get a youtube api key and add a `.env` file in the root directory of the project with the following content:
4040+4141+```env
4242+YOUTUBE_API_KEY=<your api key>
4343+```
4444+4545+7. run development server, run this in the root directory of the project:
4646+4747+```bash
4848+npm run dev
4949+```
5050+5151+8. open the browser and navigate to `http://localhost`
5252+5353+## license
5454+5555+mit
···11+/**
22+ * Backend entrypoint:
33+ * This module provides a default export that defines the UI that is returned from the backend
44+ * when a page is visited
55+ */
66+import { provideRedirect } from "uix/html/entrypoint-providers.tsx"
77+88+import "../common/theme.tsx"
99+1010+export default {
1111+ // show backend (hybrid) rendered page on /backend
1212+ //'/backend': import("../common/page.tsx"),
1313+1414+ // redirect / to /backend
1515+ //'/': provideRedirect("/backend")
1616+}