AngularAppQuestion3AngularJS 1.x CRUD示例项目

angular-seed 的项目结构挺清晰的,适合上手 AngularJS 的时候练手用。它已经把基本的项目骨架搭好了,像controllerviewservice这些都有例子,不用你从头搭。你直接git clone下来,加上npm install跑起来就能看效果,改点东西马上就能看到变化,效率也挺高。

本地开发环境用的是node.js,带了一些测试工具,像KarmaProtractor,做点自动化测试也方便。虽然它是基于AngularJS 1.x,但基本概念还挺有参考价值的,比如路由怎么配置、组件怎么拆、控制器怎么交互。

像你要做一个小的 CRUD 项目,比如用户列表加个编辑删除,这个种子项目就能让你少写多重复代码。结构都在那,改一改文件就能用。如果你不熟 AngularJS 的开发套路,这个项目确实挺适合摸索一下。

小提醒:别忘了先装好nodegit,不然跑不起来。有时候路径或者端口冲突了,注意检查下package.jsonconfig里设的参数。

如果你刚好在学 AngularJS,或者准备快速起一个小后台,这个angular-seed还蛮适合拿来用用的。简单、清爽,上手也快。

zip
AngularAppQuestion3-master.zip 预估大小:26个文件
folder
AngularAppQuestion3-master 文件夹
file
.gitignore 68B
folder
app 文件夹
file
app.js 192B
folder
components 文件夹
folder
version 文件夹
file
version_test.js 268B
file
interpolate-filter_test.js 426B
file
interpolate-filter.js 221B
file
version-directive.js 199B
file
version.js 153B
file
version-directive_test.js 492B
folder
js 文件夹
file
app.js 633B
file
controllers.js 842B
file
index-async.html 3KB
folder
view1 文件夹
file
view1.js 267B
file
view1.html 1KB
file
view1_test.js 319B
file
index.html 2KB
file
app.css 366B
folder
view2 文件夹
file
view2_test.js 319B
file
view2.js 267B
file
view2.html 140B
file
package.json 1KB
file
karma.conf.js 673B
file
LICENSE 1KB
file
README.md 11KB
folder
e2e-tests 文件夹
file
scenarios.js 932B
file
protractor.conf.js 257B
file
bower.json 374B
zip 文件大小:18.24KB