santy

Results 50 comments of santy
trafficstars

Hi @HappyZombies The controller should only have 1 call to a service that handles all the business logic required for that endpoint. I know that a search endpoint is one...

@varunagarwal315 I would have my services instance inside the controller function, that way a new instance per request is created, it is crucial if you use any kind of state...

Hi guys @AguGriguol @nandanraj56 My intention was never to say "use this way of separate folders" it is clear that separation by components has its advantages. My main idea with...

You can do is use the Facade pattern. ["A facade is an object that provides a simplified interface to a larger body of code"](http://jargon.js.org/_glossary/FACADE_PATTERN.md) For example, imagine that you have...

Thanks, looks good. > If you don't have MongoDB installed and running, install Docker and docker-compose and run: But not everybody uses docker and is easier to just install Mongo....

Why would it be difficult? Just use two servers with his pattern, try to separate your app by domain concern, like in one server have the Authentication Service (user database)...

Hi there What do you think is the best way to solve this issue?

It is directly imported to add the Type to the mailService on the class. You may use other dependency injection framework such as InversifyJS and you don't need to directly...

Oh well, that's sad I liked that package :( I will try to find an alternative, or write a service that does the same

For constants, I generally use the config file. And for utility functions, I usually create a service, or put them in a related service, generally as a static function