- YouTube
- Spotify
- Twitch
- SoundCloud
$ cd src
$ composer i
$ npm i
$ cp .env.try.example .env
$ php artisan key:generateIf you just want to try it out alone, you can skip this section.
If not, and you want to use this app with people from an outside network, you will need to expose it to the outside world in some way.
However, preparing a server is not easy, so we will use Ngrok here.
Please complete the installation and login of Ngrok by referring to another article and so on.
$ ngrok http 8000APP_ENV=ngrok
APP_URL=https://example.ngrok.com # Generated URL
VITE_REVERB_HOST=example.ngrok.com
VITE_REVERB_PORT=443
VITE_REVERB_SCHEME=https
If you just want to try this application, it is enough to set REVERB_APP_ID, REVERB_APP_KEY, and REVERB_APP_SECRET.
$ tr -dc 0-9 < /dev/urandom | fold -w 8 | head -1$ tr -dc "[:alnum:]" < /dev/urandom | fold -w 20 | head -2Write the generated values in the appropriate places in the .env and that's it.
If you just want to try this app, just set DB_PASSWORD to root in .env.
DB_PASSWORD=root
Of course, if the operating requirements are such that security is important, strict configuration is necessary.
In that case, change MYSQL_ROOT_PASSWORD in compose.yaml.
$ npm run build$ docker compose up -d$ sudo chown -R :www-data .
$ sudo chmod -R 775 storage$ docker compose exec php php /var/www/html/watch-sync/artisan migrateThose who have done the Ngrok section should visit the Ngrok URL, and those who have not should visit localhost:8000 from a web browser.