This project provides a template for building an Angular Material app that is Web and Cordova ready. The build chain is Grunt-based and facilitates building for both the Web and supported Cordova platforms.
One of the goals of this project is to provide a well defined means of organizing an Angular Material app so that it is scalable and manageable.
To get started all you need to do is to run the following:
git clone https://github.com/botter-workshop/angular-material-template.git
cd angular-material-template
npm install && bower install
grunt serve
- Open a web browser and point it to
http://localhost:8080
.
When you're ready to deploy your build the production files by running the default task:
grunt
Production files are placed in the dist/
folder. To test
the production files you can run:
grunt serve:dist
For Cordova use this project supports the following the platforms (although it may work on others that aren't listed).
- iOS 8+
- Android 4+ (Using Crosswalk)
Make sure you install the appropriate SDK for your target platforms before attempting to build.
In the following commands replace platform with either ios or android.
To build the app:
grunt cordova:build:platform
To emulate the app:
grunt cordova:emulate:platform
To run the app:
grunt cordova:run:platform