Angle
=====
Overview
--------
This document aims to explain the best way to work with the product and its components.
__All the best and enjoy coding.__
### Support
In case you have questions
[Contact Support >](https://wrapbootstrap.com/user/themicon)
Getting started
---------------
### Tips
- Do not start from scratch, use an existing asset and modify it to learn how it works.
- Explore the sources for ideas and sample code.
- Use Firebug or Chrome Developer Tools to find bugs on your website. Using one of those tools will help you to save time analyzing the site and finding elements structure, like classes, id or tags
- Quick tip: open your site with Chrome, press F12 and go to console tab, reload your page and if something goes wrong you will see your page errors in red text.
- In case of error messages, someone might have seen it too, so you can try a Google search for a quick fix.
### Starting the app
Since this is AngularJS based application you need a server (Apache, IIS, xampp, etc)to serve the html files and perform http request to load all views.
**Important!** Opening the index.html with a double click (i.e. using file:// protocol) will show you only a blank page because there's no server that response to the requests made for each view in order to display the app interface.
Customizing
-----------
### Structure
Before starting to customize the template, here are the project files organization structure:
```
+-- app/
| +-- css/
| +-- documentation/
| +-- img/
| +-- js/
| +-- i18n/
| +-- pages/
| +-- vendor/
| +-- views/
+-- master/
| +-- jade/
| | +-- pages/
| | +-- views/
| +-- js/
| | +-- modules/
| | | +-- controllers/
| | | +-- directives/
| | | +-- services/
| | +-- custom/
| +-- less/
| | +-- app/
| | +-- bootstrap/
| | +-- themes/
| +-- gulpfile.js
| +-- package.json
| +-- bower.json
+-- server/
| +-- *.json
+-- vendor/
+-- index.html
```
---
#### Main folders explanation
__app/__ folder
This folder contains the compiled files. __This files are ready to deploy on your server.__
- pages/
This folder contains the compiled html files for the single pages (out of the app).
- views/
This folder contains the compiled html files for the views and partials used for the app.
- i18n/
This folder contains the json files use for translation.
- vendor/
This folder contains vendor files not managed via bower
__master/__ folder
This folder contains the source files. You will find the following folders inside
- jade/
This folder contains JADE files. This files need to be compiled into html files to be displayed by a browser
- less/
This folder contains the LESS files for the core styles and bootstrap styles.
- js/
Here you will find pure JS files. All this files are concatenated into the file app.js.
__vendor/__ folder
This folder contains the vendor files used to include plugins and other components. This folder is handled via bower so optionally you can remove or upgrade the vendor components using such tool.
__server/__ folder
This folder contains server side files used for demonstration and guide for the flot chart and file upload components.
- __sidebar-menu.json__
This file is __important and required__ because it contains the sidebar menu definition.
### Custom code
To add your own code you can follow this instructions:
__Working with css and js__
- Create a file app/css/custom.css and add your own styles
- Create a file app/js/custom.js and add your own javascript
- Edit the file index.html and include custom.css after all other css files and custom.js after all other js files.
__Working with source files__
- For JS, go to folder master/js/custom and start editing the file custom.js. After compile the source again with gulp, your own code will included at th bottom of file app/js/app.js.
- For LESS, go to folder master/less and create a folder called custom and add your won less files. Then edit file app.less and @import all your stylesheets at the bottom (overrides all app default styles)
__A note on updating__
> The premise is, the less you change the downloaded code, the easier will be to apply any updates. Try always to keep your own code the most separated as possible from the package code to easily apply new updates when necessary.
Build
-----
**Important!** You only need to follow this instructions in case you want to work with JADE, LESS and concatenate all JS modules.
__Node.js__ is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications.
__Gulp__ is a task manager, you can define different tasks to run certain commands. Those commands does the compilation job for JADE and LESS, and concatenates the JS files.
__Bower__ is a dependency manager, it works by fetching and installing packages from all over, taking care of hunting, finding, downloading, and saving the stuff you're looking for. Bower keeps track of these packages in a manifest file, bower.json.
The package includes under the master/ folder the file __gulpfile.js__, __package.json__ and __bower.json__ to install the required components to compile the source files.
#### Installing tools
The following steps are intended to be an orientation guide, if you are not experienced with this you will need to learn more about it from Google :)
- To install node and npm, go to http://nodejs.org/
- Run __npm install -g bower__ to install bower to manage dependencies
- Download and install GIT for your platform http://git-scm.com/downloads
Once you have all tools installed
- Open a terminal, go the package __master/__ folder, then run the command __npm install__. This command will install gulp and all project dependencies.
- Then, to install vendor dependencies, run __bower install__
- Finally run __gulp__ to start the task manager
If everything goes fine, you should see the messages in the terminal telling you that most the task are done ok. The task will watch for files to compile them automatically all files when change.
To enable the automatic page reload there is also included a LiveReload task that requires the Chrome plugin [Livereload](https://chrome.google.com/webstore/detail/livereload/jnihajbhpnppcggbcgedagnkighmdlei)
### Javascript
The Javascript source is divided in two main files that controls the app
__base.js__: contains the scripts to start the application
__app.js__: contains the modules used in the application (controllers, directive, etc)
__Note__ The edit the scripts included in base.js open the file vendor.base.json located under the master folder
The app.js script build (concatenation) order is
```
'js/app.init.js'
'js/modules/*.js'
'js/modules/controllers/*.js'
'js/modules/directives/*.js'
'js/modules/services/*.js'
'js/modules/filters/*.js'
```
### LESS
The LESS files compiles into the file __app.css__. This file contains the bootstrap styles and the application custom styles.
Also the __app-rtl.css__ is automatically generated with the same styles but inverted for RTL layout. To convert styles the node script css-flip is used.
### Vendor
Vendor script dependencies are managed by bower. Just run __bower install__ in folder master/ and all dependencies will be installed.
After installing all dependencies is necessary to install them in the locations the app expects them. To do that, run gulp task with the command `gulp scripts:vendor` in the master folder.
This task will run automatically the tasks `scripts:vendor:app` and `scripts:vendor:base`
#### Vendor folder
To avoid not necessary files that bower downloads there's a task `scripts:vendor:app` that will copy all files required by the app from the __bower_components__ folder to the main __/vendor__ folder.
This files are listed in __vendor.json__ file which contains the path of all necessary files required by the app components. Those files are usually required via the lazy load module and you c
没有合适的资源?快使用搜索试试~ 我知道了~
angularjs的一个通用模板
共1022个文件
js:350个
scss:147个
less:140个
需积分: 10 13 下载量 37 浏览量
2018-01-13
23:10:21
上传
评论
收藏 4.85MB ZIP 举报
温馨提示
angularjs的一个通用模板,稍微修改一下即可用作你的课程设计什么的
资源推荐
资源详情
资源评论
收起资源包目录
angularjs的一个通用模板 (1022个子文件)
.bowerrc 105B
app-rtl.css 266KB
app.css 264KB
bootstrap-rtl.css 139KB
bootstrap.css 137KB
loaders.css 55KB
animate.min.css 52KB
ui-grid.css 33KB
ambiance.css 26KB
font-awesome.min.css 23KB
ui-grid.min.css 23KB
fullcalendar.css 22KB
spinkit.css 22KB
jquery.dataTables.css 15KB
whirl.css 13KB
weather-icons.min.css 13KB
simple-line-icons.css 11KB
toaster.css 11KB
chosen.min.css 10KB
chartist.min.css 10KB
ng-grid.css 9KB
codemirror.css 8KB
rickshaw.min.css 6KB
mdn-like.css 5KB
theme-h.css 5KB
theme-b.css 5KB
theme-f.css 5KB
theme-e.css 5KB
theme-a.css 5KB
theme-c.css 5KB
theme-g.css 5KB
theme-d.css 5KB
solarized.css 5KB
dataTables.bootstrap.css 5KB
angular-grid.css 4KB
select.css 4KB
textAngular.css 4KB
textAngular.css 4KB
ngDialog-theme-default.min.css 4KB
bootstrap-slider.min.css 3KB
theme-fresh.css 3KB
ng-table.min.css 3KB
xq-dark.css 3KB
theme-dark.css 3KB
lesser-dark.css 2KB
pastel-on-dark.css 2KB
xq-light.css 2KB
tomorrow-night-eighties.css 2KB
erlang-dark.css 2KB
abn_tree.css 2KB
zenburn.css 2KB
twilight.css 2KB
midnight.css 2KB
vibrant-ink.css 2KB
mbo.css 2KB
base16-dark.css 2KB
base16-light.css 2KB
3024-night.css 2KB
paraiso-dark.css 2KB
paraiso-light.css 2KB
tomorrow-night-bright.css 2KB
3024-day.css 2KB
blackboard.css 2KB
colorforth.css 2KB
the-matrix.css 2KB
night.css 2KB
rubyblue.css 2KB
angular-carousel.css 2KB
monokai.css 1KB
jqcloud.css 1KB
cobalt.css 1KB
xeditable.css 1KB
ngDialog.min.css 1KB
eclipse.css 1KB
bootstrap-tagsinput.css 1KB
neo.css 932B
elegant.css 768B
jquery-jvectormap-1.2.2.css 716B
neat.css 693B
tiki.css 440B
morris.css 433B
ng-img-crop.css 381B
tiddlywiki.css 220B
ambiance-mobile.css 103B
style.css 84B
fontawesome-webfont.eot 59KB
weathericons-regular-webfont.eot 41KB
Simple-Line-Icons.eot 35KB
ui-grid.eot 8KB
icons-font.html 86KB
widgets.html 35KB
animations.html 32KB
form-validation.html 30KB
dropdown-animations.html 29KB
scala.html 28KB
icons-weather.html 26KB
form-standard.html 25KB
form-wizard.html 25KB
buttons.html 25KB
spinners.html 23KB
共 1022 条
- 1
- 2
- 3
- 4
- 5
- 6
- 11
资源评论
yann.bai
- 粉丝: 265
- 资源: 12
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功