Front end site that is powered by the DC Campaign Finance Backend project https://github.com/mkalish/dc-campaign-finance-backend
- Install Node.js
- on OSX use homebrew
brew install node - on Windows use chocolatey
choco install nodejs
-
Install these NPM packages globally
npm install -g bower gulp nodemon`Refer to these instructions on how to not require sudo
- Run code analysis using
gulp analyze. This runs jshint, jscs, and plato.
- Run the unit tests using
gulp test(via karma, mocha, sinon).
-
Run the project with
gulp serve-dev --sync -
--syncopens it in a browser and updates the browser with any files changes.
- Build the optimized project using
gulp build - This create the optimized code for the project and puts it in the build folder
- Run the optimize project from the build folder with
gulp serve-build
The structure also contains a gulpfile.js and a server folder. The server is there just so we can serve the app using node. Feel free to use any server you wish.
/src
/client
/app
/content
When you generate the project it should run these commands, but if you notice missing pavkages, run these again:
npm installbower install
Generated from HotTowel Angular
Opinionated AngularJS style guide for teams by @john_papa
More details about the styles and patterns used in this app can be found in my AngularJS Style Guide and my AngularJS Patterns: Clean Code course at Pluralsight and working in teams.