ODIN Admin
- Install all dependencies:
npm installandbower install - Install gulp globaly:
npm install -g gulp
This assumes you already have Node.js installed.
The default gulp task will generate the config module for Angular according to the environment, it will serve and watch the files.
- Local:
gulp - Staging:
NODE_ENV=staging gulp
To build the app for the different environments:
- Local:
gulp build - Staging:
NODE_ENV=staging gulp build
This task will generate and copy all necessary files to run the application under the
/distdirectory. This directory is ignored by git on purpose, since all it's files are regenerated on each build.
After build, serving the /dist directory is enough for deployment.
If you want to try on your local environment, execute a Python SimpleHTTPServer on /dist.
Have in mind that a new generated
index.htmlis placed under/distwith the paths to the concatenated and minified files.