FritzTheCat9 / YoutubeLinks

YoutubeLinks allow users to save YouTube links as playlists. Users are able to download mp3/mp4 files from the playlists they create. Project created as part of the "100 Commits" competition.
27 stars 1 forks source link

How it run #52

Closed BogdanJak closed 6 months ago

BogdanJak commented 6 months ago

Hi

Do you have any instructions on how to run your project?

Bogdan

FritzTheCat9 commented 6 months ago

The application is still in development, but some features are working and You can run the app. The are some problems with running all the containers in docker, but You can set up it manually to make it work.

  1. Download app source code.
  2. Have Visual Studio downloaded to run newest blazor and .net projects (.NET 8)
  3. Set multiple project startup: image Select Api and Blazor project image
  4. Also You will need to setup database on docker. I user docker-compose and have it all set up. In YoutubeLinks.Shared/Scripts.md You have some commands and scripts to set up this project. Use docker-compose file to set up containers but for now only database one is working properly: cd C:\Users\bartl\source\repos\YoutubeLinks docker compose up --build -d docker ps Run only database container: image Then create and update the database: cd C:\Users\bartl\source\repos\YoutubeLinks\YoutubeLinks.Api dotnet ef database update You will need to create database inside this container: image image In YoutubeLinks.Shared/Scripts.md there is info about which credentials are used to set up the database and on which ports the applications are running: image
  5. If database is running on the docker container and Api and Blazor project are running inside Visual Studio You can login to the app with credentials: image Admin: Email: ytlinksapp@gmail.com Password: Asd123! User: Email: ytlinksapp1@gmail.com Password: Asd123!
  6. Only register function will not work because in appsettings my appllication email is linked to send registration emails: You can change it to use another email credentials if You want. image I will try to fix Api and Blazor docker containers and provide better setup instruction. Also database setup should be more clear and the setup instrucion.

Sorry for this a bit messy instruction. If You have any more questions feel free to ask me.

FritzTheCat9 commented 6 months ago

I guess i fixed Api and Blazor containers issues, there were some problems with yt-dlp library that i use. Now You should be able to start all containers from docker-compose file no need to start them manually from Visual Studio.

Also when using database from docker you must change connection string in appsettings.json: image

Fixed issue: https://github.com/FritzTheCat9/YoutubeLinks/issues/21

Thank You for helping me to improve my project. Also i will try to make setting database faster.

FritzTheCat9 commented 6 months ago

Fixed issue: #58 (Database should be created and migrations applied on application start) Updated readme. You should be able to run my app with one command: docker compose up --build -d

BogdanJak commented 5 months ago

Cześć

Nie wiem jak Ty to robisz ale ja ni cholery nie potrafię uruchomić twojej aplikacji. Ciągle otrzymuję błąd „Server error” zarówno z dockerem jak i bez niego.

Masz jakiś pomysł co jest nie tak albo wersję bez dockera?

Bogdan

FritzTheCat9 commented 5 months ago

Wpisujesz te dwie komendy w terminalu:

cd C:\Users\bartl\source\repos\YoutubeLinks
docker compose up --build -d

image

Na docker desktop powinny być widoczne 4 odpalone kontenery: image

Pod tymi linkami są dostępne aplikacje (baza danych powinna sama się utworzyć, nic nie trzeba robić):

Jak odpalam tak aplikację to wszystko mi działa. Możesz podesłać mi jakiś zrzut ekranu?

Server error może wystąpić jak nie działa Api: image Jak ten kontener jest wyłączony to będzie sypało server errorami (bo Api nie jest włączone): image Można podejrzeć logi z kontenera (wtedy widać gdzie jest błąd lub gdzie coś się wywaliło w aplikacji): image

BogdanJak commented 5 months ago

From: FritzTheCat9 @.> Sent: Wednesday, May 8, 2024 8:09 PM To: FritzTheCat9/YoutubeLinks @.> Cc: BogdanJak @.>; Author @.> Subject: Re: [FritzTheCat9/YoutubeLinks] How it run (Issue #52)

Wpisujesz te dwie komendy w terminalu:

cd C:\Users\bartl\source\repos\YoutubeLinks docker compose up --build -d

image.png (view on web) https://github.com/FritzTheCat9/YoutubeLinks/assets/62745092/f7b6c40c-9e5b-4a3e-953e-bc4885cc0592

Na docker desktop powinny być widoczne 4 odpalone kontenery: image.png (view on web) https://github.com/FritzTheCat9/YoutubeLinks/assets/62745092/46fc8f58-1f86-48f2-8f20-0ef5907dfcf2

Pod tymi linkami są dostępne aplikacje (baza danych powinna sama się utworzyć, nic nie trzeba robić):

Jak odpalam tak aplikację to wszystko mi działa. Możesz podesłać mi jakiś zrzut ekranu?

Server error może wystąpić jak nie działa Api: image.png (view on web) https://github.com/FritzTheCat9/YoutubeLinks/assets/62745092/3403464d-49ed-4b4c-b437-00e1d502d62b Jak ten kontener jest wyłączony to będzie sypało server errorami (bo Api nie jest włączone): image.png (view on web) https://github.com/FritzTheCat9/YoutubeLinks/assets/62745092/7455e1e7-1878-4e44-b51f-ddf18d58145d Można podejrzeć logi z kontenera (wtedy widać gdzie jest błąd lub gdzie coś się wywaliło w aplikacji): image.png (view on web) https://github.com/FritzTheCat9/YoutubeLinks/assets/62745092/8722cf34-a3bd-401f-bf07-b8c471fe5b89

— Reply to this email directly, view it on GitHub https://github.com/FritzTheCat9/YoutubeLinks/issues/52#issuecomment-2101132812 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AM7276CRNUTGSXBAJC7RC5TZBJS4BAVCNFSM6AAAAABGRMNP62VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBRGEZTEOBRGI . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AM7276EIXEGPQW62VAPNWMLZBJS4BA5CNFSM6AAAAABGRMNP62WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTT5HS7AY.gif Message ID: @. @.> >

FritzTheCat9 commented 5 months ago

Sposób na odpalenie aplikacji bez dockera:

Filmik z podmianą connection stringa: https://github.com/FritzTheCat9/YoutubeLinks/assets/62745092/8ca8f879-2c77-4da7-8985-c248bd8fa63e

Filmik z odpalenia apki: https://github.com/FritzTheCat9/YoutubeLinks/assets/62745092/79f0241c-0cf6-41e0-83e7-bb9af69fa2f3

BogdanJak commented 5 months ago

Dzięki – bez dockera apka ruszyła bez problemu

Bogdan

From: FritzTheCat9 @.> Sent: Wednesday, May 8, 2024 8:46 PM To: FritzTheCat9/YoutubeLinks @.> Cc: BogdanJak @.>; Author @.> Subject: Re: [FritzTheCat9/YoutubeLinks] How it run (Issue #52)

Sposób na odpalenie aplikacji bez dockera:

Filmik z podmianą connection stringa: https://github.com/FritzTheCat9/YoutubeLinks/assets/62745092/8ca8f879-2c77-4da7-8985-c248bd8fa63e

Filmik z odpalenia apki: https://github.com/FritzTheCat9/YoutubeLinks/assets/62745092/79f0241c-0cf6-41e0-83e7-bb9af69fa2f3

— Reply to this email directly, view it on GitHub https://github.com/FritzTheCat9/YoutubeLinks/issues/52#issuecomment-2101213876 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AM7276EVGHNE5YNPLUKG4G3ZBJXGZAVCNFSM6AAAAABGRMNP62VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBRGIYTGOBXGY . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AM7276CV6UPGDTPWDRXDLD3ZBJXGZA5CNFSM6AAAAABGRMNP62WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTT5HX5LI.gif Message ID: @. @.> >