Angular2和NodeJ [英] Angular2 and NodeJs

查看:82
本文介绍了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和其他一些示例: http://thejackalofjavascript.com/developing-a-mean-app-with-angular-2-0/
  • 您可以使用Angular-Cli创建初始项目结构: https://github.com/angular/angular-cli
  • Gulp教程: https://scotch.io/tutorials/automate-your-tasks-easily-with-gulp-js
  • 我不建议使用凉亭.请改用npm,因为它更稳定,并且从工具中获得更多支持.
    • A sample of Angular2 + NodeJS and a few other things: http://thejackalofjavascript.com/developing-a-mean-app-with-angular-2-0/
    • You can use Angular-Cli to create the initial project structure: https://github.com/angular/angular-cli
    • Gulp tutorial: https://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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆