Giter Site home page Giter Site logo

landluck / react-ant-admin-api Goto Github PK

View Code? Open in Web Editor NEW
56.0 6.0 28.0 1.22 MB

专为 react-ant-admin 开发的后端API,完善的权限路由系统,使用 eggjs、ts、mysql开发

JavaScript 0.28% TypeScript 62.67% CSS 8.36% HTML 22.13% PLpgSQL 6.56%
eggjs ts mysql sequelize redis node

react-ant-admin-api's Introduction

React Ant Admin Api

React Ant Admin Api 是使用 nodeeggjsredis、mysql 为 React-Ant-Admin 开发的配套API 项目,具有完善的框架基础、的错误处理、以及对 mysql 的使用和事物处理

使用技术

  • Node框架: eggjstypescript
  • 缓存处理: redisegg-redisioredisredis
  • 数据处理mysqlsequelizeegg-sequelize
  • 类型检查typescript
  • 跨域处理egg-cros
  • 文档管理api-docs
  • 图片上传七牛云本地服务器存储

接口实现

接口具体实现请访问线上地址地址

使用

$ git clone https://github.com/landluck/react-ant-admin-api.git
$ cd react-ant-admin-api
$ npm install
$ npm run dev

部署

$ npm start

删除

$ npm run stop

环境

node 8+

react-ant-admin-api's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

react-ant-admin-api's Issues

redis.ts getMap方法会有类型转换的错误

redis.ts

 error: ⨯ Unable to compile TypeScript:
app/service/redis.ts(59,5): error TS2322: Type 'Record<string, string>' is not assignable to type 'T'.
  'Record<string, string>' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'.

优化咨询

这个框架是目前见到的代码质量非常高的一个框架,从中学到了不少内容,在此过程中有问题想和您咨询一下:

  • 路由加了router.prefix('/react-ant-admin-api'); 在使用的过程中,如果使用了它,就逃不过auth的过滤,除非在config.auth加上此配置,不使用当然没问题,但我想您的设计**本来也是需要带一个总体路由目录(我也这样想),我应该如何再去优化一下?

请您指导一下,谢谢。

不能正常运行

你好,感谢开源。但目前注册、新增用户不能正常使用,sql版本也对不上。请问可否再更新一版,非常感谢

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.