Note:
An UI component for Employee Scheduling application. My talk from AngulaJS meetup in Dublin on "How to start writing apps with ES6, AngularJS 1.x and JSPM" can be found here.
This demo is running from gh-pages branch in backend-less development env (see backend-less section).
Click here to see it in action!
- Use ES6 with Angular 1.3
- Use ES6 Modules via SystemJS and ES6 Module Loader Polyfill
- Manage development and production workflow with JSPM, SystemJS builder and Gulp
- Mocked Backend Workflow - help with mocking backend-less development
- Achieve some of the Angular 2.0 goals while still running on Angular 1.3.x
- Produce optimised, production ready code for deployment and automatically deploy this code to gh-pages after each commit via Travis CI
## Installation & Configuration
### Platform & Tools You need to install Node.js and then the development tools. Node.js comes with a package manager called npm (requires npm version >= 2.0.0 for this project) for installing NodeJS applications and libraries.
Install node.js (requires node.js version >= 0.10.0)
Install Gulp as global npm modules (requires node.js version >= 0.10.0):
$ npm install -g gulp
1. Clone or fork this repository:
$ git clone [email protected]:martinmicunda/employee-scheduling-ui.git
$ cd employee-scheduling-ui
2. Install local dependencies
$ npm install
Note: Verify that all 3rd party dependencies from package.json are installed on your local machine. If you have followed the instructions and there have been no errors when executing the above commands, the dependencies should be installed.
TODO: add development local steps once the backend is completed
####Advantages####
- Parallel development with backend
- Frontend can have a hand in defining API
- Control over responses
- Minimal impact on code
- Backend-less development (continue development even when backend not available)
- Useful for e2e tests
- Useful for demoing UI work without backend
$ gulp serve
See build section for more details how build
is created.
$ gulp serve:dist
$ gulp build
If you want use CDN then add your CDN url to PRODUCTION_CDN_URL
variable in gulpfile.js
file and then run the build task with argument --cdn
to replace local path with CDN url:
$ gulp build --cdn
TODO
TODO
##Tips
# Maintenance
npm update -g #update all outdated global packages
npm update --save-dev #update all outdated local packages (run from project directory)
npm update npm -g #self npm update
brew update && brew doctor
brew upgrade node #update to latest node version
npm shrinkwrap --dev #Lock down dependency versions
##Roadmap
Copyright (c) 2014-2015 Martin Micunda
Source code is open source and released under the GNU GPL v3 license.