This project is for building my own blog using Asp.net Web API and Blazor WebAssembly.
- ASP.NET Web API .NET8
- EFCore
- Blazor WebAssembly
- Bootstrap
- Postgres
- HTTP Client service layer to interact with Web API.
- Authentication using JWT Token.
- Authorization
- SOLID Principle
- A RESTful API design
- Service layer for business logic
- Repository Pattern for persisting data
- Authentication via JWT
- Pagination for handling large data
- Infrastructure layer(Extensions, Helpers, Data migrations/seed)
- AutoMapper for Domain-DTO mapping.
- Unit Testing / Integration testing (InProgress)
- Clone the git repository
- Turn on Docker desktop
- Within the Hblog folder, create containers for Postgres and Web API.
docker compose up -d
- Access to
http://localhost:8090/swagger/index.html
to check swagger page(Web API). - Get authentication token using
/account/login
endpoint. Json Body :{ "username" : "testuser", "password" : "Testing#1234!"}
- In Visual studio, change the startup project to
HBlog.WebClient
- Run the project.
If you have any suggestions for how HP could be improved, feel free to create a issue and do some works for me! For more, checkout the Contributing guidelines.