Giter Site home page Giter Site logo

Where is the logic? about generator HOT 4 CLOSED

expressjs avatar expressjs commented on April 19, 2024
Where is the logic?

from generator.

Comments (4)

tsurantino avatar tsurantino commented on April 19, 2024

Hey Guido,

I am not the project author but I thought that I'd help answer your questions based on my experience with express-generator so far. Broadly, you should be careful directing some of the "how it works" questions to this project because express-generator is not responsible for explaining how it works.

With respect to routes being located in a separate file - you can actually find this documented on the Express website here. The order of the routes is in the order that they are listed in app.js, so that would mean that when express-generator creates a project, the project routes come before any app defined routes.

I found express-generator incredibly useful when starting out and so I hope with the information above you have as good of an experience as I did. Best of luck!

from generator.

GuidoS avatar GuidoS commented on April 19, 2024

@tsurantino thanks for your thoughts.

I would disagree with you about asking "how it works". If the generator is the basis on which the scaffolding is setup and the documentation around the express framework dos not discuss the current design choices in the generator, then I think the authors of the generator should be able to let us know what design choices they have made and what the proper way to work with it is.

I guess my biggest issue is that there is no documentation of using the current scaffolding setup that is being generated anywhere, so you have to know a lot about express and how it works prior to using the scaffolding. Which makes the scaffolding a little less useful if you do not know why choices were made or how to use them.

from generator.

dougwilson avatar dougwilson commented on April 19, 2024

So our main documentation site is expressjs.com , with only the base API docs in READMEs here, so long explanations would belong on expressjs.com anyhow. We have come a long way in getting richer documentation on the site and would love for you to open an issue regarding this over at https://github.com/strongloop/expressjs.com so our team can get this addressed on our site :)

from generator.

GuidoS avatar GuidoS commented on April 19, 2024

Thanks for the feedback @dougwilson

from generator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.