_____ _____ _____ _____ _____ _
| | | | | __|___| _ |___ ___ _ _| |___ ___
| | | | | | | | | __|___| | | . | | | | .'| _|
|_|_|_|_|___|_____|_____| |__|__|_|_|_ |___|_|__,|_|
|___|
MNO Enterprise Angular Frontend
How to run in development mode
Prerequisite
Create and setup a Rails project to bootstrap an instance of Maestrano Enterprise Express as describe in the mno-enterprise Github repository.
Run this Maestrano Enterprise Express project, it should now be available at http://localhost:7000.
This project will serve as a backend for our mno-enterprise-angular development environment.
Install & run mno-enterprise-angular
- Clone this repository, and
cd mno-enterprise-angular
- Run
npm install && bower install
- To start the project, run
gulp serve
A new browser tab should be open at address http://localhost:7001, with Browsersync enabled, waiting to auto-refresh in case template or CoffeeScript code is changed, or inject any modified styles.
Use and Add icons (mnoe-icon)
In order to add icons to mno-enterprise-angular you need to:
- Create a new folder under
images/sprites
and copy your images inside - Run the command
gulp sprites
. This should update the files mnoe-sprites.less and mnoe-sprites.png - Use your new image as a css class: (
<div class="mnoe-icon mnoe-icon-nameOfFolder-nameOfFile">...</div>
)
E.g: For the following architecture
|-images
|- sprites
|- awesome-icons
|- image.png
|- image-2.png
After running the gulp task you can use them like this: <i class="mnoe-icon mnoe-icon-awesome-icons-image-2"></i>
List of gulp tasks
gulp
orgulp build
to build an optimized version of your application in/dist
gulp serve
to launch a browser sync server on your source filesgulp serve:dist
to launch a server on your optimized applicationgulp sprites
to generate a sprite file with all the images inimages/sprites
gulp test
to launch your unit tests with Karmagulp test:auto
to launch your unit tests with Karma in watch modegulp protractor
to launch your e2e tests with Protractorgulp protractor:dist
to launch your e2e tests with Protractor on the dist files