Boilerplate client based on AngularJS and Angular Material.
This boilerplate is a WIP and is still in early development.
You can see the boilerplate in action here.
# Clone repository:
git clone https://github.com/Dramloc/angular-material-boilerplate.git
# Go to directory:
cd angular-material-boilerplate
# Install node.js dependencies:
yarn
This boilerplate builds are powered by webpack.
# Building non-minified (equivalent to webpack --progress)
npm run build
# Bulding minified (equivalent to webpack --progress -p)
npm run build -- -p
Execute following command to run a local web server with livereload.
npm run serve
Web server will be available at http://localhost:8080.
Environments are defined in src/environments
and allow you to define environment-specific configurations.
You can define other environments by creating other environment.<env>.js
files.
To use an environment during build or development use the following syntax:
# Build non-minified for dev environment
npm run build -- --env=dev
# Build minified for prod environment
npm run build -- -p --env=prod
# Serve with staging environment
npm run serve -- --env=staging
Environment configuration can the be accessed with $env
angular constant.