# HearthStoneForumBlazor
**Repository Path**: Yu-core/HearthStoneForumBlazor
## Basic Information
- **Project Name**: HearthStoneForumBlazor
- **Description**: 炉石传说论坛的Blazor重制版,使用Blazor和ASP.NET Core WebApi前后端分离构建。
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 3
- **Forks**: 0
- **Created**: 2022-08-23
- **Last Updated**: 2024-05-10
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
HearthStoneForumBlazor
English | [简体中文](./README.md)
Blazor Remake of [HearthStoneForum](https://github.com/Yu-Core/HearthstoneForum).It is separately from front-end and back-end(using Blazor and ASP.NET Core WebApi),with responsive display.

#### Front End
- Main Language:C#
- Main Technology:Blazor + Masa Blazor + Blazored.LocalStorage
- .NET Version:.NET6
#### Back End
- Main Language:C#
- Main Technology:ASP.NET Core WebApi + SqlSugar + JWT + AutoMapper
- Database:SQL Server
- .NET Version:.NET6
#### Usage Method
1.Configure a file to store connection strings [./HearthStoneForum.WebApi/appsettings.json](./HearthStoneForum.WebApi/appsettings.json) [./HearthStoneForum.JWT/appsettings.json](./HearthStoneForum.JWT/appsettings.json) [./HearthStoneForum.Test/appsettings.json](./HearthStoneForum.Test/appsettings.json).
2.Because using Code First,need edit [./HearthStoneForum.Repository/BaseRepository.cs](./HearthStoneForum.Repository/BaseRepository.cs). Uncomment the following section.
```C#
//创建数据库及表,第一次运行后注释掉,不然会影响性能
//base.Context.DbMaintenance.CreateDatabase();
//Type[] types = new Type[] {
// typeof(Area)
// ...
// ...
//};
//base.Context.CodeFirst.InitTables(types);
```
3.Insert some basic data,run [./HearthStoneForum.Test/Controllers/TestController.cs](./HearthStoneForum.Test/Controllers/TestController.cs) this Controller.