express-typescript-boilerplate
express-typescript-boilerplate copied to clipboard
A delightful way to building a RESTful API with NodeJs & TypeScript by @w3tecch
Hi! I created the following model: ```typescript @Entity() export class Resource { @PrimaryColumn('uuid') public id: string; @IsNotEmpty() @Column() public source: string; @IsNotEmpty() @Column({ type: 'jsonb', nullable: true }) public data:...
``` export function authorizationChecker(connection: Connection): (action: Action, roles: any[]) => Promise | boolean { const log = new Logger(__filename); const authService = Container.get(AuthService); return async function innerAuthorizationChecker(action: Action, roles: string[]):...
What version of node do you use? I encountered an error when using [email protected]. ``` $ yarn start db.seed dyld: lazy symbol binding failed: Symbol not found: __ZN4node19GetCurrentEventLoopEPN2v87IsolateE Referenced from:...
Dear fellows, What are the pratices to implement DTO concepts within this architecture? Do you have any references so I can follow? Thanks in advance
Hi, I added `routing-controllers-openapi` in order to create dinamically the swaggerFile. The static `swagger.json` now is no more necessary. When running the command `npm run start` nps throught the following...
class-validator is not running along with routings-controllers. You can test just by sending an api request with a missing field, they would say that field X doen't exist in table,...
Hi I am unable to move subfolder of public to dist folder with production. I have also removed the following line from git.: !src/public/**/* I have two files in public...
# Prerequisites - I am running the latest version - I checked the documentation and found no answer - I checked to make sure that this issue has not already...
error An unexpected error occurred: "https://registry.yarnpkg.com/flatmap-stream/-/flatmap-stream-0.1.1.tgz: Request failed \"404 Not Found\"".