Giter Club home page Giter Club logo

medley's Introduction

medley

Playlist.science with users and actual features

alpha.medley.live

clarification

dc is an alias for docker-compose If you don't have that alias, make it. It's good.

install

git clone [email protected]:PlaylistScience/medley.git
composer install
yarn install

If Yarn throws: No such file or directory: 'install' or ERROR: There are no scenarios; must have at least one yarnpkg/yarn#2821 (comment)

build assets

yarn encore dev

watch assets

yarn encore dev --watch

start php dev server and db

dc up -d

watch logs

dc logs -f

edit db connection

Edit .env

DATABASE_URL=pgsql://postgres:pw@db:5432/medley

dc exec php sh
bin/console make:migration
bin/console doctrine:migrations:migrate

visit localhost:4321

This will be empty black page. Proceed with next step.

create default user

bin/console addDefaultUserCommand

import songs into db from https://api.playlist.science

bin/console importOldSystemData api.playlist.science

visit localhost:4321

You can click on tracks and they will play

medley's People

Contributors

martinstuessy avatar 0xrin1 avatar dstuessy avatar dominicwatts avatar alpharecon19 avatar

Watchers

James Cloos avatar  avatar  avatar  avatar David Decent avatar

medley's Issues

Using different db pw in production environment

What is the best way to handle this?

Do we deploy once so the image is live, then while there is no data, we shell into the box that is hosting the image and shell into the container. From there we log into the postgres cli and create username and password with appropriate rights and lock down db access from anywhere else.

Then the data should be set on that server because it's volume bound to the image and from there on out we set everything to the creds we just assigned to that new user when we connect for production.

Am I overthinking this?

Can we set this stuff in a config somewhere instead, or in the docker-production.yml file or something?

@AlphaRecon19 @DominicWatts @dstuessy @Decad

Blog

Create a blog page within medley where we can make announcements and keep track of other repo-related things.

User switching

Switching between users in index vue resets track index.

To solve store track and recalculate index on user switch. Like that tracks will keep playing as before.

Will increase load a little bit so if there is a better way of doing this please suggest.

Controlling content

I'm thinking people should be able to add to their own lists as they want.

But since user lists point to track table, we can't just immediately add their stuff.

I suggest creating a temptrack table where users see their stuff as soon as they add it.
But other users don't see temptracks -> and then we cronjob some process where admins approve the submission - making sure that the video is a song, the artist and song name as well as the genre is correct.

Then once approved, remove from temptrack, add to track, and job done.


This will not scale indefinitely but I don't censorship ever does without making tons of assumptions.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.