问题描述
我即将开始pretty浩大的工程。
I'm about to start a pretty huge project.
该项目是一个网站。
- 后端将与节点做出
- 前端将主要用做角
后端将是一个API(这是与角凉)也(后下)Android应用程式。
Backend is going to be an API (which is cool with Angular) but also (later) for an Android app.
前端将是这一回购的叉:,这是德-facto标准依赖管理工具,前端项目。它允许你定义一个 bower.json
文件来定义你的依赖,例如角等前端库,让您组装您的前端的项目,而无需手动下载和存储库。
Since you're already using Angular for the frontend, I suggest you take a look at Bower, which is the de-facto standard dependency management tool for frontend projects. It allows you to define a bower.json
file to define your dependencies, e.g. Angular and other frontend libraries, allowing you to assemble your frontend project without having to download and store libraries manually.
在后端的项目,你会再还指着其中添加的声明前端项目作为的依赖的一个 bower.json
的文件Git的位置和分支。那么鲍尔将下载您前端的项目,并添加到您的后端项目的照顾。
In your backend project, you would then also add a bower.json
file which declares your frontend project as a dependency by pointing to its Git location and branch. Bower will then take care of downloading your frontend project and adding it into your backend project.
检查出一些流行的鲍尔教程以获取更多的信息...
Check out some of the popular Bower tutorials for more info on this...
您可以使用亭子链接
来自动创建您的项目之间的符号链接 - 这将跨操作系统工作,以及
You can use bower link
to automatically create symlinks between your projects - this will work across operating systems as well.
这你可能想看看一些其他的工具:
Some other tools that you might want to check out:
- 脚手架基地项目。有脚手架角项目,包括像LESS /上海社会科学院和Bootstrap东西()
- 自动布线您鲍尔依赖到你的
的index.html
文件。
- Yeoman for scaffolding a base project. There are some nice generators for scaffolding Angular projects, including things like LESS/SASS and Bootstrap (https://github.com/yeoman/generator-angular)
- Wiredep for automatically wiring your Bower dependencies into your
index.html
file.
获取最初的项目设置权将是非常重要的。你可以开始小和成长的东西到一个更高级的配置更高版本。
Getting your initial project setup right will be important. You can start small and grow things to a more advanced configuration later.
这篇关于尼斯的Git架构服务器/客户端?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!