Coder Social home page Coder Social logo

outjs / out-admin-midway Goto Github PK

View Code? Open in Web Editor NEW
11.0 1.0 1.0 352 KB

out-admin-midway基于 midway.js 3.x、koa、mysql、typeorm、redis、jwt开发的一个后台权限管理系统系统

License: MIT License

PLpgSQL 18.07% JavaScript 0.19% TypeScript 81.74%
jwt koa midway mysql passport redis typescript nodejs typeorm antd react

out-admin-midway's Introduction

out-admin-midway

out-admin-midway是使用 Midway.js 3.x(上层使用 Koa)开发的一个后台权限管理系统系统

codecov codecov codecov

依赖环境

运行该项目需要以下环境支持

  • Mysql
  • Redis

数据库

先将 database 目录下到 sql 文件迁移到数据库,修改默认的config配置文件,位于src/config/config.default.ts

orm: {
    type: 'mysql',
    host: 'localhost',
    port: 3306,
    username: 'root',
    password: 'root',
    database: 'admin',
    synchronize: false, // 自动建表 注意:线上部署的时候不要使用,有可能导致数据丢失
    logging: false,
    dateStrings: true,
}

Redis

修改默认的config配置文件,位于src/config/config.default.ts

redis: {
  client: {
    port: 6379, // Redis port
    host: '127.0.0.1', // Redis host
    db: 0,
  }
}

运行

$ npm i
$ npm run dev
$ open http://localhost:7001/

登录账号

admin/123456

Swagger

image

image

image

前端项目

配套的前端工程请移步 https://github.com/OutUI/out-admin-react

image

image

image

欢迎Star和PR

如果项目对你有用,请给颗星支持一下,如果你有好的建议欢迎PR!

out-admin-midway's People

Contributors

outjs avatar xxm6318 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

djun

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.