lemo-crm/web/README.md
2017-07-24 23:51:46 +08:00

123 lines
3.3 KiB
Markdown

# Ambition CRM
This README outlines the details of collaborating on this Ember application.
A short introduction of this app could easily go here.
## Prerequisites
You will need the following things properly installed on your computer.
* [Git](http://git-scm.com/)
* [Node.js](http://nodejs.org/) (with NPM)
* [Bower](http://bower.io/)
* [Ember CLI](http://www.ember-cli.com/)
* [PhantomJS](http://phantomjs.org/)
## Installation
* `git clone <repository-url>` this repository
* change into the new directory
* `npm install`
* `bower install`
## Running / Development
* `ember server`
* Visit your app at [http://localhost:4200](http://localhost:4200).
### Code Generators
Make use of the many generators for code, try `ember help generate` for more details
### Running Tests
* `ember test`
* `ember test --server`
### Building
* `ember build` (development)
* `ember build --environment production` (production)
### Deploying
Specify what it takes to deploy your app.
## Further Reading / Useful Links
* [ember.js](http://emberjs.com/)
* [ember-cli](http://www.ember-cli.com/)
* Development Browser Extensions
* [ember inspector for chrome](https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi)
* [ember inspector for firefox](https://addons.mozilla.org/en-US/firefox/addon/ember-inspector/)
Install Bootstrap
bower install bootstrap --save
Afterwards add following two lines to your ember-cli-build.js
app.import(app.bowerDirectory + '/bootstrap/dist/js/bootstrap.js');
app.import(app.bowerDirectory + '/bootstrap/dist/css/bootstrap.css');
Install Moment
ember install ember-moment
Install Colorbox
bower install jquery-colorbox --save
app.import(app.bowerDirectory + '/jquery-colorbox/jquery.colorbox-min.js');
Install Bootbox
bower install bootbox --save
Afterwards add following two lines to your ember-cli-build.js
app.import(app.bowerDirectory + '/bootstrap/dist/js/bootstrap.js');
app.import(app.bowerDirectory + '/bootstrap/dist/css/bootstrap.css');
Install validate
bower install validate --save
Install ember-select-2
ember install ember-select-2
Install js-cookie
bower install js-cookie --save
app.import(app.bowerDirectory + '/js-cookie/src/js.cookie.js');
Install jQuery-Storage-API
bower install jQuery-Storage-API --save
app.import(app.bowerDirectory + '/jquery-storage-api/jquery.storageapi.min.js');
Install Font Awesome
bower install font-awesome --save
app.import(app.bowerDirectory + '/font-awesome/css/font-awesome.min.css');
npm install broccoli-funnel --save-dev
npm install valid-url --save-dev
Install Bootstrap Color Picker
bower install bootstrap-colorpicker --save
Install Route Action Helper
ember install ember-route-action-helper
Install EmberX Select
ember install emberx-select
Install fuelux
bower install fuelux --save
This is an example for using the npm package dexie within an Ember CLI app.
Install browserify: npm install ember-browserify --save-dev
Install dexie (or whatever module you need): npm install dexie --save-dev
Import the module like this: import Dexie from 'npm:dexie';
Install JQuery HotKeys
bower install jquery.hotkeys
Install Bootstrap WYSIWYG
bower install bootstrap-wysiwyg
bower install bootstrap-treeview
ember install ember-radio-button