-
Notifications
You must be signed in to change notification settings - Fork 101
Here are some of the most common issues we are aware of that people run into.
It stands for next generation
, not angular
.
Sure! Even though the naming suggests it's a fullstack-only generator, there's an option to work only with the client side, no server code generated.
Yup, all you have to do is to select server
instead of fullstack
in the questions asked.
I'm planning to use the generator as a fullstack app, but I want to serve static through a different, is it possible?
Definitely. There's already an option for you to check if you want the server side to serve the static or not. Then, all you have to do is serve the static through, say, nginx and proxy the /api
calls to the server.
Not really. Chose the one you like the most and speeds up the development of your app. I personally use either Atom or Visual Studio Code, but there are other great ones out there.
No. You should have your own certs. The ones used in this generator are meant to help you set up the enviroment for secure development, like setting cookies in secure mode, and this kind of protection. It also helps you to setup HTTP/2 stuff.
The main reason is: maintainability in long term, in big projects. Some of the generators out there follow the "flat", "featureless" structure, which is a bit like the following:
app
services
one-service.ts
two-service.ts
three-service.ts
components
one-component.ts
two-component.ts
three-component.ts
directives
one-directive.ts
two-directive.ts
three-directive.ts
As you can see, even though that's pretty straight forward, it's pretty hard to keep a track of what's going on when the project gets bigger and bigger. Say that now your controller has a hundred files, the services have models, factories and real services all mixed - it's a big mess - hard to reason about.
So, we're trying to solve the bigger picture by separating by feature, so our structure is as it follows:
app
one
services
one-service.ts
components
one-component.ts
directives
one-directive.ts
two
services
two-service.ts
components
two-component.ts
directives
two-directive.ts
three
services
three-service.ts
components
three-component.ts
directives
three-directive.ts
Now you know exactly what lives within each feature, and, even if you get to hundreds of files inside the one
feature, you'll still know it's all about that feature and nothing else.
That's something we've considered and it's coming in 1.10, see #203.
Most likely no. Node and Go are the main ones now. Rust might be considered some time ahead, but there's nothing planned.
Yes, even though it's not planned yet, React is something we might consider adding.
Nope, as of right now we made sure to pick the "best" ones out there, so I don't see any additions for a while.
Oh, that's nice! There's a lot of ways to help: helping others in issues, submiting PRs, adding stuff to the wiki, among many other ways.
Don't be shy, this project is made by the community, for the community - we're all here to help 😄