GithubHelp home page GithubHelp logo

taozhi1010 / nest-admin Goto Github PK

View Code? Open in Web Editor NEW
441.0 441.0 98.0 3.07 MB

nest全栈快速开发平台

Home Page: https://nest-admin.dooring.vip/

License: MIT License

JavaScript 16.81% Batchfile 0.05% HTML 3.90% Vue 58.66% SCSS 2.35% TypeScript 18.23%
admin mysql nestjs node redis typeorm ui vue

nest-admin's Issues

surpport for PG

你好,我想请问能支持postgres数据库吗?我简单看了一下实现方式,如果要切换pg的话需要修改实体定义或者添加控制器吗

生成代码无法访问到数据库表?

后台报错 ValidationError: The 'X-Forwarded-For' header is set but the Express 'trust proxy' setting is false (default). This could indicate a misconfiguration which would prevent express-rate-limit from accurately identifying users. See https://express-rate-limit.github.io/ERR_ERL_UNEXPECTED_X_FORWARDED_FOR/ for more information.
at Object.xForwardedForHeader (D:\govi\nest若依\nest-admin\server\node_modules\express-rate-limit\dist\index.cjs:166:13)
at Object.wrappedValidations. [as xForwardedForHeader] (D:\govi\nest若依\nest-admin\server\node_modules\express-rate-limit\dist\index.cjs:324:22)
at Object.keyGenerator (D:\govi\nest若依\nest-admin\server\node_modules\express-rate-limit\dist\index.cjs:579:20)
at D:\govi\nest若依\nest-admin\server\node_modules\express-rate-limit\dist\index.cjs:629:32
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at D:\govi\nest若依\nest-admin\server\node_modules\express-rate-limit\dist\index.cjs:611:5 {
code: 'ERR_ERL_UNEXPECTED_X_FORWARDED_FOR',
help: 'https://express-rate-limit.github.io/ERR_ERL_UNEXPECTED_X_FORWARDED_FOR/'

nest-admin/admin 启动失败

node 版本: 16.18.0
系统: windows 10

按照流程

# 建议不要直接使用 cnpm 安装依赖,会有各种诡异的 bug。可以通过如下操作解决 npm 下载速度慢的问题
npm install --registry=https://registry.npmmirror.com

# 启动服务
npm run dev

错误如图:

image

导入表报错 500

我用sql创建了一个表base_info,进入代码生成tab,点击导入,选择我创建的表base_info,点击确认时报错:

http://localhost:8888/dev-api/tool/gen/importTable

{
    "code": 500,
    "msg": "Service Error: QueryFailedError: Unknown column 'status' in 'field list'"
}

请问我是否漏掉了一些操作,比如需要先在server代码中手动创建实体类?

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.