{"id":19029250,"url":"https://github.com/sulmar/sulmar-cc-net6","last_synced_at":"2026-05-02T08:30:22.389Z","repository":{"id":63759872,"uuid":"568807090","full_name":"sulmar/sulmar-cc-net6","owner":"sulmar","description":"Przykłady ze szkolenia .NET6","archived":false,"fork":false,"pushed_at":"2023-01-05T08:20:28.000Z","size":1160,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-02T03:33:35.652Z","etag":null,"topics":["netcore6"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sulmar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-11-21T13:00:27.000Z","updated_at":"2022-12-01T09:51:20.000Z","dependencies_parsed_at":"2023-02-03T20:15:42.279Z","dependency_job_id":null,"html_url":"https://github.com/sulmar/sulmar-cc-net6","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sulmar%2Fsulmar-cc-net6","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sulmar%2Fsulmar-cc-net6/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sulmar%2Fsulmar-cc-net6/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sulmar%2Fsulmar-cc-net6/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sulmar","download_url":"https://codeload.github.com/sulmar/sulmar-cc-net6/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240079641,"owners_count":19744725,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["netcore6"],"created_at":"2024-11-08T21:13:42.268Z","updated_at":"2026-05-02T08:30:22.310Z","avatar_url":"https://github.com/sulmar.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# .NET6\nPrzykłady ze szkolenia .NET6\n\n## Podstawy\n\n### Komendy CLI\n#### Środowisko\n- ``` dotnet --version ``` - wyświetlenie aktualnie używanej wersji SDK\n- ``` dotnet --list-sdks ``` - wyświetlenie listy zainstalowanych SDK\n- ``` dotnet new globaljson ``` - utworzenie pliku _global.json_\n- ``` dotnet new globaljson --sdk-version {version} ``` - utworzenie pliku _global.json_ i ustawienie wersji SDK\n\n#### Projekt\n- ``` dotnet new --list ``` - wyświetlenie listy dostępnych szablonów\n- ``` dotnet new {template} ``` - utworzenie nowego projektu na podstawie wybranego szablonu, np. console, web\n- ``` dotnet new {template} -o {output} ``` - utworzenie nowego projektu w podanym katalogu\n- ``` dotnet restore ``` - pobranie pakietów nuget powiązanych z projektem\n- ``` dotnet build ``` - kompilacja projektu\n- ``` dotnet run ``` - uruchomienie projektu\n- ``` dotnet watch run ``` - uruchomienie projektu w trybie śledzenia zmian\n- ``` dotnet run {app.dll}``` - uruchomienie aplikacji\n- ``` dotnet test ``` - uruchomienie testów jednostkowych\n- ``` dotnet watch test ``` - uruchomienie testów jednostkowych w trybie śledzenia zmian\n- ``` dotnet add reference {library.csproj} ``` - dodanie odwołania do biblioteki\n- ``` dotnet remove reference {library.csproj} ``` - usunięcie odwołania do biblioteki\n- ``` dotnet list reference ``` - lista wszystkich odwołań w projekcie\n- ``` dotnet clean ``` - wyczyszczenie wyniku kompilacji, czyli zawartości folderu pośredniego _obj_ oraz folderu końcowego _bin_\n\n#### Rozwiązanie\n- ``` dotnet new sln ``` - utworzenie nowego rozwiązania\n- ``` dotnet new sln --name {name} ``` - utworzenie nowego rozwiązania o określonej nazwie\n- ``` dotnet sln add {folder} ``` - dodanie projektu z folderu do rozwiązania\n- ``` dotnet sln remove {folder} ``` - usunięcie projektu z folderu z rozwiązania\n- ``` dotnet sln add {project.csproj} ``` - dodanie projektu do rozwiązania\n- ``` dotnet sln remove {project.csproj} ``` - usunięcie projektu z rozwiązania\n- ``` dotnet sln list ``` - lista projektów w rozwiązaniu\n\n\n\n## REST API\n\n| Akcja   | Przeznaczenie  |  \n|---|---|\n| GET | pobierz |\n| POST | utwórz |\n| PUT | zamień |\n| PATCH | modyfikacja |\n| DELETE | usuń |\n\n\n## Polecane\n\n- React\nhttps://codewithmosh.com/courses/enrolled/357787\n\n- JSON Patch\nhttps://jsonpatch.com\n\n- How to Run C# in VSCode (Compile, Debug, and Create a Project)\nhttps://www.youtube.com/watch?v=DAsyjpqhDp4\n\n\n## Docker\n\n- _Czemu każdy programista musi znać dockera?_\nhttps://javamaster.it/czemu-kazdy-programista-musi-znac-dockera/\n\n### Polecenia\n- ``` docker --version ``` - wyświetlenie wersji \n- ``` docker images ``` - wyświetlenie listy pobranych obrazów\n- ``` docker ps ``` - wyświetlenie uruchomionych kontenerów\n- ``` docker ps -a ``` - wyświetlenie wszystkich kontenerów\n\n### Seq\n\n- UI\n`http://localhost:5341`\n\n#### Docker\n\n`docker run --name cc-seq -d --restart unless-stopped -e ACCEPT_EULA=Y -p 5341:80 datalust/seq:latest`\n\n##### Docker Compose\n1. docker-compose.yml\n\n~~~ yaml\nversion: '3.4'\n\n  seq:\n      image: datalust/seq:latest\n      ports:\n        - \"5341:80\"\n      environment:\n        - ACCEPT_EULA=Y\n      restart: unless-stopped\n      volumes:\n        - ./seq-data:/data\n\n~~~\n\n2. `docker-compose up`\n\n\n## Konfiguracja\n\n### User Secrets\nhttps://www.karltarvas.com/2019/10/28/visual-studio-mac-manage-user-secrets.html\n\n#### Komendy\n- ``` dotnet user-secrets init ``` - utworzenie sekretów\n- ``` dotnet user-secrets set \"{key}\" \"{value}\" ``` - ustawienie wartości klucza\n- ``` dotnet user-secrets list ``` - wyświetlenie listy kluczy i wartości\n- ``` dotnet user-secrets remove \"{key}\" ``` - usunięcie wskazanego klucza\n- ``` dotnet user-secrets clear ``` - usunięcie wszystkich kluczy\n\n## React.JS\n\n### Utworzenie projektu\n\n1. `npx create-react-app foldername`\n2. `cd foldername`\n3. `npm start`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsulmar%2Fsulmar-cc-net6","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsulmar%2Fsulmar-cc-net6","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsulmar%2Fsulmar-cc-net6/lists"}