Coder Social home page Coder Social logo

zyhzyh1383 / kejian.core.api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ifzc/kejian.core.api

0.0 0.0 0.0 105 KB

kejian企业官网配套后端接口,基于 core3 webapi 项目,重构版,架构封装完善,可作为模板项目

C# 100.00%

kejian.core.api's Introduction

KeJian.Core.Api

✨ 站点部署

System:Linux - CentOS 7.7
DB:MySql
Api Host : kejianapi.filog.cn/swagger
Web Host : kejian.filog.cn (接口正在替换为新接口)
测试账号:admin 123456

有小伙伴要的表结构 TableSql.sql

🔥 简单两步即可运行项目

Step 1 :
在 KeJian.Core.Api 项目根目录中添加 appsettings.Demo.json 文件

{
  "ConnectionStrings": {
    "DefaultConnection": "-- connection string --"
  },
  "JwtSecurityOption": {
    "SigningKey": "-- signing key --"
  }
}

配置 ConnectionStrings
例:Database='kejian';Data Source=***;User ID=***;Password=***;CharSet=utf8;SslMode=None
关闭 SSL(HTTPS) 连接 SslMode=None
配置 JwtSigningKey (需要 16 个字符以上,推荐 Guid)

Step 2 :
在程序包管理控制台选择 KeJian.Core.EntityFramework 项目执行更新数据库命令
部分版本的 MySql 可能需要手动创建库名

💡 CodeFirst 命令

PM 模式 (程序包管理控制台)

PM> Add-Migration Initial              建立并初始化数据库
PM> Update-Database                    更新数据库
PM> Script-Migration                   生成 SQL 语句

Cmd 模式

> dotnet ef migrations add Initial     建立并初始化数据库
> dotnet ef database update            更新数据库

kejian.core.api's People

Contributors

ifzc 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.