bulletproof-nodejs
bulletproof-nodejs copied to clipboard
Implementation of a bulletproof node.js API 🛡️
Greetings, Would you mind explain/comment the following construct, which I'm not familiar with : ```ts public async SignUp(userInputDTO: IUserInputDTO): Promise ``` ```ts export default ({ mongoConnection, models }: { mongoConnection;...
Hi~. You said that "Put a .env file, that must never be committed" in your article. Then how do you handle other environments like production, test, etc?? If each branch...
Add precommit hook with husky and lint-staged to run tests, linter and formatter.
src/subscribers/user.ts:29:14 - error TS2339: Property 'error' does not exist on type 'unknown' ``` import { Container } from 'typedi'; const Logger = Container.get('logger'); Logger.error(`🔥 Error on event ${events.user.signIn}: %o`, e);...
Hello, in your routes you have such file as auth.ts And we're using celebrate library to check if all data from front-end in the right format. ``` route.post( '/signup', celebrate({...
I read your article and checked your pattern and I was surprised that my architecture is very similar to yours. But I not found one thing I am searching for...
Hi Santiq, Good Day! Great work! I've been learning on this pattern and applying on a test project. But now I'm struggling about which layer should the form/input validation located...
Hey - thanks for this. I have a question: how would you go about splitting up a "service" to prevent it getting too large considering a service could potentially contain...