{"id":18372957,"url":"https://github.com/marttp/dotnet-core-text-based-rpg","last_synced_at":"2025-04-11T00:58:51.261Z","repository":{"id":47517431,"uuid":"264574285","full_name":"marttp/dotnet-core-text-based-rpg","owner":"marttp","description":"This project is for learning .NET Core API technology for backend development","archived":false,"fork":false,"pushed_at":"2021-08-25T15:21:56.000Z","size":35,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-11T00:58:48.291Z","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/marttp.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":"2020-05-17T03:16:44.000Z","updated_at":"2020-05-22T01:16:10.000Z","dependencies_parsed_at":"2022-09-06T07:31:47.936Z","dependency_job_id":null,"html_url":"https://github.com/marttp/dotnet-core-text-based-rpg","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/marttp%2Fdotnet-core-text-based-rpg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marttp%2Fdotnet-core-text-based-rpg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marttp%2Fdotnet-core-text-based-rpg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marttp%2Fdotnet-core-text-based-rpg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marttp","download_url":"https://codeload.github.com/marttp/dotnet-core-text-based-rpg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248322611,"owners_count":21084336,"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":[],"created_at":"2024-11-06T00:07:46.376Z","updated_at":"2025-04-11T00:58:51.233Z","avatar_url":"https://github.com/marttp.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Create project\ndotnet new webapi -n TextBasedRPG\n\n# Run server\ndotnet run\n\n# Install DotNet DependencyInjection\ndotnet add package AutoMapper.Extensions.Microsoft.DependencyInjection\n\n# Install Token package\ndotnet add package Microsoft.IdentityModel.Tokens\ndotnet add package System.IdentityModel.Tokens.Jwt\ndotnet add package Microsoft.AspNetCore.Authentication.JwtBearer\n\n# Install Entity Framework Core for SQL server\ndotnet add package Microsoft.EntityFrameworkCore.SqlServer\n# Entity Framework migrations\ndotnet tool install --global dotnet-ef\n# Entity Framework\ndotnet add package Microsoft.EntityFrameworkCore.Design\n# Migration\n- dotnet ef -h\n- 1. dotnet ef migrations add InitialCreate\n- You got a file of migration =\u003e These files are used by Entity Framework so that it knows what it should do with this migration. They provide information about your tables and fields that Entity Framework uses to build your database\n- 2. dotnet ef database update\n- dotnet ef migrations remove\n\ndotnet ef migrations add User\ndotnet ef migrations add Character\ndotnet ef migrations add Weapon\ndotnet ef migrations add Skill\n\n# Add migration\ndotnet ef migrations add [Class]\n# Add relations\ndotnet ef migrations add [class1+class2+Relation]\n\ndotnet ef migrations add UserCharacterRelation\ndotnet ef migrations add FightProperties\n\n# Knowledge\n- Use generic wrapper class for more ux response\n- Use DTO for mapping response field\n- Use AutoMapper for making Model class mapping to DTO","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarttp%2Fdotnet-core-text-based-rpg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarttp%2Fdotnet-core-text-based-rpg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarttp%2Fdotnet-core-text-based-rpg/lists"}