Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Using Express Nodemon BrowserSync and Gulp together

I want to start writing fullstack JS apps so I'm pretty good already with gulp for frontend stuff

Now I want to make a small express server but I was trying to think what a good solution to integrate both things would be or if there's another way of doing things.

My idea is to have my express app launch a server then edit frontend stuff that gets compiled and spitted to the public folder so express uses it as static files, then I want to have the browser reload on change maybe with browser sync but also when I edit backend stuff with nodemon.

Hope someone has an answer for this

Thanks!!

2 Answers

the browser window does not get reloaded with my tasks.

This guide should help you with that

Woah thank you very much i believe that does the job perfectly!

I set up a starter project a while back, where I do most of the things you are describing here.

Feel free to check it out

Thanks a lot for the input so basically make nodemon inside of gulp with gulp-nodemon right.

But what i'm not sure about your tasks is if the browser window gets reloaded after a change??

Still i'm sure implementing your part of gulp-nodemon.

Here is my usual gulp workflow for frontend stuff if you want to peek at it as well :)