One use ASP NET Core MVC 7.0
developed the blog system
, which integrates online free tools
, and is currently under development
English | 简体中文
- Use
ASP Net core MVC 7.0
development - With blog browsing feature
- Use with tools
Dotnet9:https://dotnet9.com
- .NET 7.0
- Visual Studio 2022
- PostgreSQL
Please configure the project before running correctly. Please see the following instructions.
- Configuration database connection string
Add connection string of MySQL to the appsettings.json
:
"ConnectionStrings": {
"DefaultConnection": "Host=[host];Username=[username];Database=[database];port=[5432];password=[password];"
}
- Configuration the datas of blog
Add seed data of blog to the appsettings.json
:
"AssetsLocalPath": "F:\\github_gitee\\Assets.Dotnet9",
"AssetsRemotePath": "https://img1.dotnet9.com"
- AssetsLocalPath: There are Blog post categories, albums, posts and other are stored in this directory, these needs to be cloned from repository: https://github.com/dotnet9/Assets.Dotnet9
- AssetsRemotePath:This is cdn url and the image resources are storage in this repository.
Open the package console and select the project Dotnet9.EntityFrameworkCore
, then execute the following command:
Add-Migration InitDB
Update-Database
After the above two steps are completed, run the project and visit the link 'localhost:5000 /seed' to generate seed data. This method is written in below:
[Route("seed")]
public async Task<bool> Seed()
{
// Seed execution method body
}
MIT
Introduction to website articles:分享我做Dotnet9博客网站时积累的一些资料
Album
Category
Details of blog post
Register page
Login page
Dashboard