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 trialTorre Taylor
Front End Web Development Techdegree Graduate 15,730 PointsHow did you get the 'bin' folder into the project?
In the video we are directed to go into the bin folder. When I try and setup a project outside of workspaces I do not have this folder. Where is it located or how do I get it?
3 Answers
Ker Zhang
Full Stack JavaScript Techdegree Graduate 29,113 PointsYes, the bin/www was not clearly mentioned. You need to do some initialization with Express, here is the solution.
It's created by ExpressJS, but you need to install the Express Generator:
$ npm install -g express-generator
Then:
$ express -f
Make sure you run this at the very beginning of the project, otherwise the Express will overwrite you app.js, package.json files
John Perry
Full Stack JavaScript Techdegree Graduate 41,012 Points$ npm install -g express-generator
$ express --view:pug -f
Joel Kraft
Treehouse Guest TeacherHi Torre,
The bin
folder is created along with other files and folders when express-generator creates a bare-bones express app. You can watch this video if you want to learn more about express-generator, which can be a great productivity-booster.
Hope that helps!