{"id":28432287,"url":"https://github.com/developer-seb-v/e-commerce-aspnet-identity-default","last_synced_at":"2025-07-01T08:33:19.284Z","repository":{"id":297378661,"uuid":"996560235","full_name":"developer-seb-v/e-commerce-aspnet-identity-default","owner":"developer-seb-v","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-05T06:39:10.000Z","size":10690,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-05T07:52:23.107Z","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/developer-seb-v.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,"zenodo":null}},"created_at":"2025-06-05T06:00:34.000Z","updated_at":"2025-06-05T06:39:13.000Z","dependencies_parsed_at":"2025-06-05T08:03:17.783Z","dependency_job_id":null,"html_url":"https://github.com/developer-seb-v/e-commerce-aspnet-identity-default","commit_stats":null,"previous_names":["developer-seb-v/e-commerce-aspnet-identity-default"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/developer-seb-v/e-commerce-aspnet-identity-default","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer-seb-v%2Fe-commerce-aspnet-identity-default","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer-seb-v%2Fe-commerce-aspnet-identity-default/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer-seb-v%2Fe-commerce-aspnet-identity-default/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer-seb-v%2Fe-commerce-aspnet-identity-default/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/developer-seb-v","download_url":"https://codeload.github.com/developer-seb-v/e-commerce-aspnet-identity-default/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer-seb-v%2Fe-commerce-aspnet-identity-default/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262927986,"owners_count":23386061,"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":"2025-06-05T16:36:14.723Z","updated_at":"2025-07-01T08:33:19.277Z","avatar_url":"https://github.com/developer-seb-v.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp\u003eThis is a boilerplate for using ASPNET IDENTITY for cookie-based authentication/authorization. It uses PostgreSQL running in a Docker container with a volume mounted to it for data persistence. Obviously, this project has no controller endpoints. You still need to create your controllers or minimal API style endpoints. You can also add JWT as well if you'd like. Can run on win, mac, linux.\u003c/p\u003e\n\nMake sure you have the following installed: \u003cbr\u003e\n\u003cem\u003edotnet 8 sdk, entity framework CLI, docker\u003c/em\u003e\n\nSteps to reproduce: \u003cbr\u003e\n1- clone repo \u003cbr\u003e\n2- delete \"Migrations\" folder \u003cbr\u003e\n\n3- in your terminal/cmd line run the following command to create docker volume: \u003cbr\u003e\n \u003ccode\u003edocker volume create volume02\u003c/code\u003e \n \u003cbr\u003e\n\n4- then type in this command to create and run the PostgreSQL container:\u003cbr\u003e\n\u003ccode\u003edocker run --name postgres -e POSTGRES_PASSWORD=password123 \\ \u003cbr\u003e\n-p 5432:5432 -v volume02:/var/lib/postgresql/data -d postgres\u003c/code\u003e \u003cbr\u003e\n\n5- run \u003ccode\u003edotnet ef migrations \"name of your migration\"\u003c/code\u003e \u003cbr\u003e\n     \u003ccode\u003e dotnet ef database update \u003c/code\u003e \u003cbr\u003e\n These will populate the postgres DB with the Identity library-provided tables for authentication. \n\u003cbr\u003e\nTo connect to postgreSQL db, open an interactive terminal and run this command:\u003cbr\u003e\n\u003ccode\u003epsql -U postgres\u003c/code\u003e \u003cbr\u003e\nthen: \u003ccode\u003e \\c auth_db; \u003c/code\u003e(to connect to the db ef created)\u003cbr\u003e\nthen: \u003ccode\u003e\\dt; \u003c/code\u003e (to show the tables that ef created) \u003cbr\u003e\n\n Schema |         Name          | Type  |  Owner   \u003cbr\u003e\n--------+-----------------------+-------+---------- \u003cbr\u003e\n public | AspNetRoleClaims      | table | postgres \u003cbr\u003e\n public | AspNetRoles           | table | postgres \u003cbr\u003e\n public | AspNetUserClaims      | table | postgres \u003cbr\u003e\n public | AspNetUserLogins      | table | postgres \u003cbr\u003e\n public | AspNetUserRoles       | table | postgres \u003cbr\u003e\n public | AspNetUserTokens      | table | postgres \u003cbr\u003e\n public | AspNetUsers           | table | postgres \u003cbr\u003e\n public | __EFMigrationsHistory | table | postgres \u003cbr\u003e\n\n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloper-seb-v%2Fe-commerce-aspnet-identity-default","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeveloper-seb-v%2Fe-commerce-aspnet-identity-default","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloper-seb-v%2Fe-commerce-aspnet-identity-default/lists"}