Coder Social home page Coder Social logo

fly-sy / nodeexpressadmin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ciey/nodeexpressadmin

1.0 0.0 0.0 1.7 MB

node实现后台权限管理系统,集成用户登录,权限管理。

License: MIT License

JavaScript 71.98% CSS 19.92% HTML 7.21% TSQL 0.89%

nodeexpressadmin's Introduction

Node.js

node version express mysql

介绍

NodeExpressAdmin为后台权限管理系统

node后台权限管理系统(1)—权限设计

node后台权限管理(2)—界面设计及实现

node后台权限管理(3)—异常处理

技术栈

Framework: Express

db: mysql

ORM: sequelize

Cache: redis

ECMAScript: ES6

项目运行

环境:

  • node >=8, 推荐LTS 10+
  • mysql >= 5.6
  • redis
//copy config.js,config.js为本地配置文件,加入了gitignore
$ cp config.default.js config.js

$ npm install

//mysql中手动建数据库,执行以下命令同步表
$ node dbsync

// models/sql/express_admin_init.sql 执行并初始化数据
// 默认初设账户admin/admin, test/test
$ npm start

项目布局

.
├── assets                          静态资源目录
│   ├── css                         自定义css
│   ├── images                      自定义图片
│   ├── js                          自定义js
│   └── libs                        第三方资源库
├── common                          公共组件
│   ├── logger.js                   日志
│   └── xxx.js                      其他(后续增加)
├── controller                      控制器
│   ├── login.js                    登录控制器 
│   ├── system.js                   系统控制器
│   ├── xxxx.js                     其他(后续增加)
├── logs                            日志文件
├── middleware                      中间件
│   ├── auth.js                     权限验证    
│   └── xxxx.js                     其他(后续增加)
├── models                          模型(数据库)
│   ├── index.js                    db配置及加载模型
│   └── user.js                     用户模型
├── upload                          上传文件夹
│   └── xxxx.png                     
├── views                           视图
├── app.js                          启动文件
├── config.default.js               默认配置     
├── config.js                       加载实际配置(本地)         
├── dbsync.js                       数据同步             
├── package.json                    配置文件
├── README.md                       项目说明
└── router.js                       路由表

nodeexpressadmin's People

Contributors

ciey avatar

Stargazers

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