V
V
Viktor Batienko2019-01-13 23:41:55
JavaScript
Viktor Batienko, 2019-01-13 23:41:55

What is the right architecture for restapi on nodejs?

I am slowly migrating from php to nodejs using typescript.
I read a lot of information from Google, but I would also like to see here how the restapi architecture is being built.
Namely, more questions arise.
1) How to create and connect correctly configs, for example, to connect and work with the database
2) Is there an analog that is similar to namespace/use , autoloader.
3) Yes, and the architecture itself, I would be glad for a good example from github / bitbucket where both the connection to the database and different configs are already used. Yes, and everything is built so that it would be possible to study this matter by example

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
grinat, 2019-01-14
@grinat

Search boilerplate + naming framework
https://github.com/juliandavidmr/awesome-nestjs
https://github.com/topics/express-boilerplate

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question