Closed BogdanJak closed 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.
Sorry for this a bit messy instruction. If You have any more questions feel free to ask me.
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:
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.
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
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
Wpisujesz te dwie komendy w terminalu:
cd C:\Users\bartl\source\repos\YoutubeLinks
docker compose up --build -d
Na docker desktop powinny być widoczne 4 odpalone kontenery:
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: Jak ten kontener jest wyłączony to będzie sypało server errorami (bo Api nie jest włączone): Można podejrzeć logi z kontenera (wtedy widać gdzie jest błąd lub gdzie coś się wywaliło w aplikacji):
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: @. @.> >
Sposób na odpalenie aplikacji bez dockera:
Ustawiamy aplikacje które mają startować (wybieramy w Api http i Blazor http, potem zaznaczamy je jako multiple project startup).
YoutubeLinks.Api -> appsettings.json -> podmieniamy connection string na:
"ConnectionString": "Server=(localdb)\\mssqllocaldb;Database=YoutubeLinks;Trusted_Connection=True;"
Na serwerze: "(localdb)\mssqllocaldb" powinna utworzyć się baza danych o nazwie YoutubeLinks (po starcie aplikacji).
Startujemy aplikację
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
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: @. @.> >
Hi
Do you have any instructions on how to run your project?
Bogdan