Angular2 boilerplate using AdminPlus Lite, Bootstrap Layout and ng2-bootstrap-layout.
You can see a working live demo of this boilerplate.
git clone https://github.com/themekit/adminplus-boilerplate-angular2.git my-project
cd my-project
Install
gulp
:
npm install -g gulp
Install application dependencies:
npm install
The following will make an initial build and then serve the application on
http://localhost:3000
.
It will also watch
./app/**/*.ts
and recompile the TypeScript to./assets/js
, watch./assets/sass/**/*
and recompile the Sass to./assets/css
and watchindex.html
,systemjs.config.js
,./assets/**/*.js
and./assets/**/*.css
files and inject any changes into your browser automatically.
npm start
gulp build
NODE_ENV=production gulp release
To use the production bundle, uncomment the following in
./index.html
, before the call toSystem.import('app')
:
<!-- Production Bundle -->
<script src="assets/js/app.bundle.js"></script>