Giter VIP home page Giter VIP logo

Comments (6)

zhengxs2018 avatar zhengxs2018 commented on June 11, 2024

什么错误,有截图么

from fullstack-app-template.

aoxiangsky avatar aoxiangsky commented on June 11, 2024

什么错误,有截图么

fHgK1O.png
fHgMcD.png
fHgu9K.png

from fullstack-app-template.

zhengxs2018 avatar zhengxs2018 commented on June 11, 2024

我看了下,是依赖的包有不兼容更新。

你是要这个项目做什么,是学习?还是项目中使用?

如果项目中使用推荐你用,如下的框架:

如果是学习,我晚上把项目的依赖固定下就好了

from fullstack-app-template.

aoxiangsky avatar aoxiangsky commented on June 11, 2024

我看了下,是依赖的包有不兼容更新。

你是要这个项目做什么,是学习?还是项目中使用?

如果项目中使用推荐你用,如下的框架:

如果是学习,我晚上把项目的依赖固定下就好了

本来想着在项目中使用,不过更多的是学习,谢谢大佬!

from fullstack-app-template.

zhengxs2018 avatar zhengxs2018 commented on June 11, 2024

前端很多项目很少有复杂的功能需求。

如果是简单的渲染 html,没有逻辑层,只想解决请求跨域问题,可以用 nginx 代理和发送 html,如 vue 项目。

如果是需要隐藏后端,前端做中间层,可以用 eggjs 这种框架。

如果是想用 typescript 写 node,可以用 midwayjs 和 nestjs

from fullstack-app-template.

zhengxs2018 avatar zhengxs2018 commented on June 11, 2024

但如果你是抱着学习的目的,我建议你用 koa 开发。

框架

Swagger 工具

工具包

  • axios - 对外请求,支持 nodejs 中使用
  • lodash - 函数库,支持 nodejs 中使用
  • joi - 数据验证

本地开发

生产工具

  • pm2 - 监听应用变化,重启服务,可以用 docker 代替

其他

  • mustache - 无逻辑,模板引擎
  • nunjucks - 模板引擎,强大,但不推荐

参考 eggjs 的目录组织或按自己的理解开发。

等你做完一个独立的项目,再从 eggjs -> midwayjs -> nestjs 顺序去看框架,学起来会轻松很多。

from fullstack-app-template.

Related Issues (2)

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.