- Run
npm installto pull all requirednode_moduledependencies - Run
npm install gulp -gto install Gulp, the automated build system used for the front-end, globally. - Follow the instructions at
http://sass-lang.com/installto install Sass locally. This is required to view the app in the browser.
TODO : Integrate Gulp workflow into the express app so there is only one command for running.
- Type
gulpto run the Gulpfile which compiles, minifies, and copiesfront_endsource files to theproductiondirectory. NOTE: You must rungulpeach time you wish to view new changes from thefront-endsource. - To run:
- (Option 1) Enter the command 'npm start' to launch the app at 'localhost:3000' in a development environment
- (Option 2) Enter the command 'npm production' to launch the app at 'localhost:3000' in a production environment
- Type
gulp watchto start a server atlocalhost:9000.
This server watches for changes to front-end source files and compiles and copies them over to the production. This way, you can refresh your browser and see the changes instantly instead of having to recompile manually.
- Run the server: 'npm start'
- Open another terminal and type 'make test' or 'npm test'
If this doesn't work, make sure you have the most up to date libraries by running 'npm install'