{"id":24018627,"url":"https://github.com/ryancoll/m1-implementation-dotnetmidtermstarter","last_synced_at":"2025-10-17T04:05:14.403Z","repository":{"id":139649229,"uuid":"457554502","full_name":"RyanColl/m1-implementation-dotnetMidtermStarter","owner":"RyanColl","description":null,"archived":false,"fork":false,"pushed_at":"2022-02-10T00:11:22.000Z","size":875,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-25T21:35:13.152Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/RyanColl.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-09T22:51:29.000Z","updated_at":"2022-02-09T22:51:35.000Z","dependencies_parsed_at":"2023-07-23T08:16:01.768Z","dependency_job_id":null,"html_url":"https://github.com/RyanColl/m1-implementation-dotnetMidtermStarter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"RTeeen/dotnetMidtermStarter","purl":"pkg:github/RyanColl/m1-implementation-dotnetMidtermStarter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RyanColl%2Fm1-implementation-dotnetMidtermStarter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RyanColl%2Fm1-implementation-dotnetMidtermStarter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RyanColl%2Fm1-implementation-dotnetMidtermStarter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RyanColl%2Fm1-implementation-dotnetMidtermStarter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RyanColl","download_url":"https://codeload.github.com/RyanColl/m1-implementation-dotnetMidtermStarter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RyanColl%2Fm1-implementation-dotnetMidtermStarter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279281189,"owners_count":26139395,"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","status":"online","status_checked_at":"2025-10-17T02:00:07.504Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-01-08T10:17:26.629Z","updated_at":"2025-10-17T04:05:14.397Z","avatar_url":"https://github.com/RyanColl.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1\u003eC# Midterm Starter\u003c/h1\u003e\n\n**Environment:**\n\n- The CSV file is in the wwwroot folder.\n\n- Sqlite DB Connection string is in appsettings.json\n\n**Controllers:**\n\n- Create a controller for the entity (ex. Student)\n\n```console\ndotnet aspnet-codegenerator controller -name StudentsController -async -m Student -dc ApplicationDbContext -outDir Controllers -sqlite\n```\n\n- Update the ChartsController according to the task.\n\n**Migrations and creating DB:**\n\n```console\ndotnet ef migrations add M1 -o Data/Migrations\n```\n\n```console\ndotnet-ef database update\n```\n\n**Docker:**\n\n- Publish the app\n\n```console\n./pblsh.sh\n```\n\n- Create the image and run the container locally to test it (Accessible on http://localhost:5000/)\n\n```console\ndocker compose up\n```\n\n- After:\n\n```console\ndocker compose down\n```\n\n- Create and tag the image for sending it to Docker hub\n\n```console\ndocker build --tag dotnetmidterm:1.0.0 .\n```\n\n- Login to your Docker account through terminal\n\n```console\ndocker login --username=[YOUR_USERNAME]\n```\n\n- Tag your image with your DockerID\n\n```console\ndocker tag dotnetmidterm:1.0.0 [YOUR_USERNAME]/dotnetmidterm:1.0.0\n```\n\n- Push the image to DockerHub\n\n```console\ndocker push [YOUR_USERNAME]/dotnetmidterm:1.0.0\n```\n\n- To run you image from DockerHub, remove the image locally and run the following command\n\n```console\ndocker run -d -p 8888:80 [YOUR_USERNAME]/dotnetmidterm:1.0.0\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryancoll%2Fm1-implementation-dotnetmidtermstarter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryancoll%2Fm1-implementation-dotnetmidtermstarter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryancoll%2Fm1-implementation-dotnetmidtermstarter/lists"}