Git Product home page Git Product logo

netmodular's Introduction

.Net Core 模块化的前后端分离的快速开发框架

框架特点

1、模块化
2、前后端分离
3、多数据库任意切换(目前支持 SqlServer、MySql、SQLite)
4、异步到底

Demo

地址:https://nm.iamoldli.com

账户:admin
密码:admin

前端框架 Demo

地址:http://nm.demo.iamoldli.com/index.html
账户:admin
密码:admin

文档

1、开篇
2、快速创建一个业务模块
3、数据访问模块介绍
4、模块化实现思路

开发环境

服务端

IDE:vs2017+
框架:.Net Core 2.2+
数据库:MSSQL、MySql、SQLite

前端

IDE:vscode
框架:Vue.js 全家桶Element-UI

运行方式

1、找到data目录,按需要创建对应数据库(目前只上传了 MySql)

需要注意的时,在 linux 的 docker 中 mysql 默认启用了区分大小写,需要先关闭

2、打开src/WebHost/conifg/db.json文件,配置数据库连接

{
  // 是否开启SQL日志
  "Logging": true,
  "Connections": [
    {
      "Name": "Admin",
      "Dialect": 1,
      "Database": "Nm_Admin",
      "ConnString": "Server=localhost;Database=nm_admin;Uid=root;Pwd=root;Allow User Variables=True;charset=utf8;SslMode=none;"
    },
    {
      "Name": "CodeGenerator",
      "Dialect": 1,
      "Database": "Nm_CodeGenerator",
      "ConnString": "Server=localhost;Database=nm_codegenerator;Uid=root;Pwd=root;Allow User Variables=True;charset=utf8;SslMode=none;"
    },
    {
      "Name": "Common",
      "Dialect": 1,
      "Database": "Nm_Common",
      "ConnString": "Server=localhost;Database=nm_common;Uid=root;Pwd=root;Allow User Variables=True;charset=utf8;SslMode=none;"
    },
    {
      "Name": "PersonnelFiles",
      "Dialect": 1,
      "Database": "Nm_PersonnelFiles",
      "ConnString": "Server=localhost;Database=Nm_PersonnelFiles;Uid=root;Pwd=root;Allow User Variables=True;charset=utf8;SslMode=none;"
    }
  ]
}

3、启动服务端,进入 src/WebHost/ 目录,使用控制台运行 dotnet watch run 命令

4、启动前端,进入 src/WebUI/ 目录,运行以下命令

npm i
npm update
npm run serve

node: 如果安装包失败,请使用官方的镜像,不要使用国内的

5、然后打开浏览器,输入http://localhost:5220/进行浏览

可访问 http://localhost:6220/swagger/index.html 查看接口文档

功能模块

权限管理模块(00_Admin)

  • 模块管理
  • 权限管理
  • 菜单管理
  • 按钮管理
  • 角色管理
  • 账户管理
  • 审计日志
  • 配置管理
  • 系统设置

代码生成模块(01_CodeGenerator)

  • 项目管理
  • 实体配置
  • 枚举管理

通用模块(02_Common)

  • 行政区划代码管理
  • 附件管理
  • 字典表管理

人事档案(03_PersonnelFiles)

  • 公司单位管理
  • 部门管理
  • 岗位管理
  • 人员信息管理
  • 人员工作经历管理
  • 人员教育经历管理

netmodular's People

Contributors

iamoldli avatar

Watchers

James Cloos 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.