Location>code7788 >text

Learning and using diary of StarBlog and Blog Programs (II)

Popularity:221 ℃/2025-04-26 22:03:41

During use, I found that the blog list of the management platform cannot be viewed. I found that the reference path is invalid. After finding it, I found the corresponding menu configuration item and modified the corresponding path as/echarts/4.3.0/That's right, consider whether to modify it to a local file in the future.

When using it, it is found that the server cannot be carried. . . . It often gets stuck when you go up remotely.

After changing the .net version back to 8.0, I found that there was still a problem with efcore mapping, and I don’t know much about efcore, so I stopped it for the time being, and I mainly use StarBlog in the future.

After the server is released on StarBlog, it is much more stable, and then several errors are reported during use. Someone may encounter the same problem as me. Please record it here.

:"Could not find a part of the path 'D:\.WXX\.netcode\Personal\StarBlog-master\StarBlog-master\wwwroot\media\picture_library'."

If this error pops up when viewing the blog list, please create a new picture_library folder in the media folder in wwwroot.

Since the problem has been dealt with, let me briefly talk about it: If it does not exist, create a new file structure in the file root directory. I will generate a false data from the entity in the code:

[
  {
    "Id": 1,
    "Value": "Hello World!",
    "Tag": "ces"
  }
]

When opening the homepage of the management platform is loaded, SQLite Error 1: 'no such table: visit_record'. This table should not exist. If possible, use the DB Browser (SQLite) tool to open the file in the root directory of the project and manually create the corresponding database.

The table structure can be found in the project:

public void Configure(EntityTypeBuilder<VisitRecord> builder) {
    ("visit_record");
    (e => );
    (e => ).HasMaxLength(64);
    (e => ).HasMaxLength(2048);
    (e => ).HasMaxLength(2048);
    (e => ).HasMaxLength(10);
    (e => ).HasMaxLength(1024);
}

At first I thought it would be fine to create this way, but after I started it again, I found that there was still an error, but the prompt turned out to be a certain field wrong. After several debugging and searching the code (ctrl+f), I found that some modification codes for modifying the field names and variables could be found in the corresponding folder of \Migrations in the project. However, after modifying it, there are still problems. However, it does not affect the normal use of the blog, so I will ignore it for the time being.

This week, the company has a lot of things to do, and I didn’t read the code of the blog. However, when I was thinking, I found that StarBlog’s technology stack does not overlap with me. Now I have the idea of ​​writing a blog myself for the time being.

The tentative technology stack is:

The database is: mysql, and I am temporarily considering whether the cache tool is needed.

The backend is: sqlsugar, layer three, mvc native (Razor may be changed to Razor if you have learned it)

Front-end: Consider using native html for the time being (the configuration items of vue2 and 3 are too complicated for me, and then the front-end of the company told me that I need to consider engineering, which I don’t understand even more. If StarBlog is thoroughly researched, you can consider writing front-end code according to StarBlog)

The current StarBlog framework code can also run, so let's hang it like this for the time being. But if you don’t buy a domain name, you won’t post the website.