Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript Install and Use Sequelize CLI

Torre Taylor
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Torre Taylor
Front End Web Development Techdegree Graduate 15,730 Points

How 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
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Ker Zhang
Full Stack JavaScript Techdegree Graduate 29,113 Points

Yes, 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

$ npm install -g express-generator
$ express --view:pug -f
Joel Kraft
STAFF
Joel Kraft
Treehouse Guest Teacher

Hi 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!