What tools do you use with ExpressJS to make development easier?
The setup provide in the getting started doesn't reload the the server when you make a change, at each change we have to reload it manually. So what tools do you use to make the developement easier ?
nodemon restarts the server on change and the on restart callback runs livereload.
Then the livereload on chrome detects it and reloads the page. Profit! :)
Arvind Kumar
Tech geek, Node.js fan, Python lover!
Here's my setup:
gulp,nodemonandlivereloadnpm modules in the project dirgulpfile.jsas follows:"use strict" const gulp = require('gulp') const nodemon = require('gulp-nodemon') const livereload = require('gulp-livereload') gulp.task('default', () => { livereload.listen() nodemon({ script: 'app.js', ext: 'js' }).on('restart', () => { gulp.src('app.js') .pipe(livereload()) }) })gulpin the project dirnodemonrestarts the server on change and theon restartcallback runs livereload. Then the livereload on chrome detects it and reloads the page. Profit! :)Hope this helps. :)