Comments (4)
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.
@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.
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.
Thanks for the feedback @dougwilson
from generator.
Related Issues (20)
- tanks
- Opinionless, minimalist variant HOT 4
- Should the node version < 6 be opted out in travis.yml ? HOT 3
- bash: express: command not found... HOT 3
- fix lodash vulnerability HOT 2
- is this still maintaining? HOT 1
- CORS HOT 1
- Include .gitignore file as part of the initial project setup HOT 1
- myapp HOT 1
- Instructions on how to compile the css engines HOT 4
- option to generate mjs HOT 1
- Recommending nodemon instead of npm start.
- Sass Generator not working out of the box HOT 1
- To bump `pug` to latest >3.x.x
- To automate maintenance of dependency versions in `express-cli.js` HOT 3
- EACCES: permission denied HOT 1
- Dire need for a major update/overhaul HOT 5
- Is express-generator is deprecated or out of maintenance? HOT 1
- Running tests locally fails
- sass instead of node-sass
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from generator.