{"id":21269803,"url":"https://github.com/prashantrahul141/blogwebapidotnet","last_synced_at":"2026-05-13T12:44:21.786Z","repository":{"id":238794842,"uuid":"797577353","full_name":"prashantrahul141/BlogWebApiDotNet","owner":"prashantrahul141","description":"Web Apis for a simple blogging app using ASP .NET 8","archived":false,"fork":false,"pushed_at":"2024-06-05T16:53:38.000Z","size":83,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-22T02:23:47.584Z","etag":null,"topics":["asp-net","csharp","dotnet"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/prashantrahul141.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-05-08T05:42:02.000Z","updated_at":"2024-06-05T16:53:41.000Z","dependencies_parsed_at":"2024-05-08T07:27:16.750Z","dependency_job_id":"b2c49213-e3c4-4653-996d-a09b87fb1535","html_url":"https://github.com/prashantrahul141/BlogWebApiDotNet","commit_stats":null,"previous_names":["prashantrahul141/blogwebapidotnet"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prashantrahul141%2FBlogWebApiDotNet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prashantrahul141%2FBlogWebApiDotNet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prashantrahul141%2FBlogWebApiDotNet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prashantrahul141%2FBlogWebApiDotNet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prashantrahul141","download_url":"https://codeload.github.com/prashantrahul141/BlogWebApiDotNet/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243725542,"owners_count":20337667,"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":["asp-net","csharp","dotnet"],"created_at":"2024-11-21T08:12:02.066Z","updated_at":"2025-10-19T06:23:48.056Z","avatar_url":"https://github.com/prashantrahul141.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Web Apis for a simple blogging app using ASP .NET 8\n\nWeb Apis for a simple blogging app using ASP .NET 8, The frontend I made for this can be found here:\n\n**https://github.com/prashantrahul141/dotnet-t3-blogs**\n\n\nThis project uses the following packages.\n\n- BCrypt.Net-Next\n- Microsoft.AspNetCore.Identity.EntityFrameworkCore\n- Microsoft.EntityFrameworkCore\n- Microsoft.EntityFrameworkCore.Design\n- Npgsql.EntityFrameworkCore.PostgreSQL\n- Swashbuckle.AspNetCore\n- Swashbuckle.AspNetCore.Filters\n\n### Building\n\nMake sure you .NET 8 installed, [Installation instructions](https://learn.microsoft.com/en-us/dotnet/core/install/)\nYou can also make sure it's installed by running dotnet\n```sh\n$ dotnet\n```\n\nAdd the following environment variables to `.env` file, this will get checked at runtime before starting the application using [LoadEnv.cs](https://github.com/prashantrahul141/BlogWebApiDotNet/blob/main/Utils/LoadEnv.cs)\n```env\n# DB using Postgres.\nPG_PASSWORD=password of postgres instance\nPG_HOST=hostname of db instance\nPG_DATABASE=database name\nPG_USERNAME=username of db instance\nPG_PORT=port of db instance\n\n# JWT Token for Auth.\nJWT_ISSUER=http://localhost:3000\nJWT_AUD=http://localhost:3000\n\n# Can be created at https://generate-secret.vercel.app/64\nJWT_KEY=\n```\n\nRun build\n```sh\n$ dotnet build\n```\n\nMigrate database, for this you will need to install EF, [Install instructions](https://learn.microsoft.com/en-us/ef/core/cli/dotnet)\n```sh\n$ dotnet ef migrations add InitialMigration\n```\nThen update\n```sh\n$ dotnet ef database update\n```\n\nThen finnaly run the application\n```sh\n$ dotnet run\n```\n\nSwagger UI should automatically open in your default browser at http://localhost:5248/swagger/index.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprashantrahul141%2Fblogwebapidotnet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprashantrahul141%2Fblogwebapidotnet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprashantrahul141%2Fblogwebapidotnet/lists"}