GithubHelp home page GithubHelp logo

wupan001 / dotnet9 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dotnet9/dotnet9.com

0.0 0.0 0.0 326.34 MB

Under development. See https://dotnet9.com for preview effect

Home Page: https://dotnet9.com

License: MIT License

JavaScript 2.05% C# 52.79% CSS 23.89% HTML 21.03% Dockerfile 0.24%

dotnet9's Introduction

Dotnet9

Dotnet9

One use ASP NET Core MVC 7.0 developed the blog system, which integrates online free tools, and is currently under development

dotnet-version Visual Studio 2022 Github Github stars

English | 简体中文

✨ Features

  1. Use ASP Net core MVC 7.0 development
  2. With blog browsing feature
  3. Use with tools

🌈 Online Examples

Dotnet9:https://dotnet9.com

🖥 Environment Support

  • .NET 7.0
  • Visual Studio 2022
  • PostgreSQL

3.1 Project configuration

Please configure the project before running correctly. Please see the following instructions.

  1. 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];"
}
  1. 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.

3.2 Data migration

Open the package console and select the project Dotnet9.EntityFrameworkCore, then execute the following command:

Add-Migration InitDB
Update-Database

3.2 Generate data seed

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
}

💕 Donation

WechatAlipayQQpay

☀️ License

MIT

A few last screenshots of the website

Introduction to website articles:分享我做Dotnet9博客网站时积累的一些资料

Front

Album

Category

Details of blog post

后台

Register page

Login page

Dashboard

dotnet9's People

Contributors

dotnet9 avatar sunnylis avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.