- Run
npm install
to pull all requirednode_module
dependencies - Run
npm install gulp -g
to install Gulp, the automated build system used for the front-end, globally. - Follow the instructions at
http://sass-lang.com/install
to 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
gulp
to run the Gulpfile which compiles, minifies, and copiesfront_end
source files to theproduction
directory. NOTE: You must rungulp
each time you wish to view new changes from thefront-end
source. - 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 watch
to 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'