Angular2和NodeJ

编程入门 行业动态 更新时间:2024-10-27 02:23:44
本文介绍了Angular2和NodeJ的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在尝试使用NodeJ创建带有REST服务的Angular2项目.尽管我发现有些教程/示例代码可以进行此类应用,但是代码/项目的组织形式却彼此不同.我正在尝试找出迄今为止最好的方法.

I'm trying to create an Angular2 project with a REST service, using NodeJs. Although I found some tutorials/sample codes doing this kind of applications, the organization of the code/project is different form each other. I'm trying to figure out what's the best way so far to do that.

基本上,

  • 用NodeJ后端创建Angular2项目的最佳方法是什么?
  • 文件夹结构应该是什么?
  • 将Angular代码(带有TypeScript)放在哪里?
  • 如何使用Bower/Gulp?
推荐答案

  • Angular2 + NodeJS和其他一些示例: thejackalofjavascript/developing-a-mean-app-with-angular-2-0/
  • 您可以使用Angular-Cli创建初始项目结构: github/angular/angular-cli
  • Gulp教程: scotch.io/tutorials/automate-your-tasks-easily-with-gulp-js
  • 我不建议使用凉亭.请改用npm,因为它更稳定,并且从工具中获得更多支持.
    • A sample of Angular2 + NodeJS and a few other things: thejackalofjavascript/developing-a-mean-app-with-angular-2-0/
    • You can use Angular-Cli to create the initial project structure: github/angular/angular-cli
    • Gulp tutorial: scotch.io/tutorials/automate-your-tasks-easily-with-gulp-js
    • I do not recommend using bower. Use npm instead, as it is more stable, and has more support from the tools.

更多推荐

Angular2和NodeJ

本文发布于:2023-11-01 17:34:51,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1549965.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:NodeJ

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!