IGNITE-3319 Updated devnotes and fix build under Windows.
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/1d8f1112 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/1d8f1112 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/1d8f1112 Branch: refs/heads/ignite-3262 Commit: 1d8f11124985236fcaead956ef3a22b1cd8da231 Parents: 5baae1e Author: Alexey Kuznetsov <[email protected]> Authored: Mon Jun 27 16:41:01 2016 +0700 Committer: Alexey Kuznetsov <[email protected]> Committed: Mon Jun 27 16:41:01 2016 +0700 ---------------------------------------------------------------------- modules/web-console/DEVNOTES.txt | 29 ++++++++++++-------- .../src/main/js/gulpfile.babel.js/tasks/copy.js | 3 +- 2 files changed, 19 insertions(+), 13 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/1d8f1112/modules/web-console/DEVNOTES.txt ---------------------------------------------------------------------- diff --git a/modules/web-console/DEVNOTES.txt b/modules/web-console/DEVNOTES.txt index 5a10a48..793ea81 100644 --- a/modules/web-console/DEVNOTES.txt +++ b/modules/web-console/DEVNOTES.txt @@ -3,25 +3,32 @@ Ignite Web Console Instructions How to deploy locally: -1. Install locally MongoDB (version >=3.x) follow instructions from site http://docs.mongodb.org/manual/installation +1. Install locally MongoDB (version >=3.x) follow instructions from site http://docs.mongodb.org/manual/installation. 2. Install locally NodeJS (version >=4.x) using installer from site https://nodejs.org for your OS. 3. Change directory '$IGNITE_HOME/modules/web-console/src/main/js'. -4. Run "npm install" in terminal for download all dependencies. -5. Build ignite-web-agent module follow instructions from 'modules/web-agent/README.txt'. -6. Copy ignite-web-agent-<version>.zip from target of ignite-web-agent module to 'modules/web-console/src/main/js/serve/agent_dists' folder. - -Steps 1 - 6 should be executed once. +4. Update npm to 3.x: + Linux: + npm install -g npm + Windows: + npm install -g npm-windows-upgrade + npm-windows-upgrade + See: https://github.com/felixrieseberg/npm-windows-upgrade + Check npm version: "npm --version". +5. Run "npm install" in terminal for download all dependencies. +6. Build ignite-web-agent module follow instructions from 'modules/web-agent/README.txt'. +7. Copy ignite-web-agent-<version>.zip from target of ignite-web-agent module to 'modules/web-console/src/main/js/serve/agent_dists' folder. + +Steps 1 - 7 should be executed once. How to run console in development mode: 1. Configure MongoDB to run as service or in terminal change dir to $MONGO_INSTALL_DIR/server/3.0/bin and start MongoDB by executing "mongod". -2. In new terminal change directory to '$IGNITE_HOME/modules/web-console/src/main/js' - and start application by executing "npm start" (for first time) or "node serve" to start backend. +2. In new terminal change directory to '$IGNITE_HOME/modules/web-console/src/main/js'. + If needed run "npm install" (if dependencies changed) and run "node serve" to start backend. 3. In new terminal change directory to '$IGNITE_HOME/modules/web-console/src/main/js' - and start virtual server and local changes watcher by executing "gulp watch --debug" - or "gulp connect" to start web server only. + and start webpack in development mode "npm run dev" . -4. In browser open: http://localhost:8090 +4. In browser open: http://localhost:9000 http://git-wip-us.apache.org/repos/asf/ignite/blob/1d8f1112/modules/web-console/src/main/js/gulpfile.babel.js/tasks/copy.js ---------------------------------------------------------------------- diff --git a/modules/web-console/src/main/js/gulpfile.babel.js/tasks/copy.js b/modules/web-console/src/main/js/gulpfile.babel.js/tasks/copy.js index 3522038..55c9485 100644 --- a/modules/web-console/src/main/js/gulpfile.babel.js/tasks/copy.js +++ b/modules/web-console/src/main/js/gulpfile.babel.js/tasks/copy.js @@ -32,8 +32,7 @@ gulp.task('copy:resource', () => ); gulp.task('copy:ignite_modules:js', () => - gulp.src(jsModulePaths) - .pipe(gulp.dest(`${rootDir}/${igniteModulesTemp}`)) + gulp.src(jsModulePaths).pipe(gulp.dest(igniteModulesTemp)) ); gulp.task('copy:ignite_modules:resource', () =>
