profile
viewpoint
Guilherme Andrade gapinto C.E.S.A.R Brasil

gapinto/clean-architecture-example 0

Clean Architecture Example (Java): Example of what clean architecture would look like (in Java)

gapinto/jhipster-mt 0

JHipster Multitenant Example

gapinto/nestjs-tenancy 0

Multi-tenancy approach for nestjs - currently supported only for mongodb with mongoose

gapinto/pwa-workshop-angular 0

Demo App for Angular Mobile Toolkit workshop

startedthe-one-who-knoccks/NLW3-Master

started time in 2 days

startedopen-wa/wa-automate-nodejs

started time in a month

startedchatapi/whatsapp-nodejs-bot-en

started time in a month

startedWICG/native-file-system

started time in a month

delete branch gapinto/nestjs-tenancy

delete branch : patch-2

delete time in a month

issue openedkelektiv/node.bcrypt.js

Application is interrupted without to say anything (NodeJs 12.13.1)

Node Version: 12.13.1

I'm using docker:

FROM node:11-alpine

WORKDIR /management-internal-admin

COPY package.json .
COPY package-lock.json .

RUN npm install --quiet

COPY . . 

EXPOSE 9000

CMD ["npm", "start:dev"]

When I'm trying to execute this code:

       try {
            const saltValue = await genSalt(10);
            const password = await hash(createUserDto.password, saltValue);
        } catch (error) {
            console.log(error);
        }

The container is exited without saying nothing.

Log:

m-i-admin                    | [Nest] 28   - 09/09/2020, 6:27:20 AM   [NestApplication] Nest application successfully started +7ms
mongo_1                      | {"t":{"$date":"2020-09-09T06:27:30.517+00:00"},"s":"I",  "c":"NETWORK",  "id":22943,   "ctx":"listener","msg":"connection accepted","attr":{"remote":"172.21.0.4:59214","sessionId":65,"connectionCount":6}}
mongo_1                      | {"t":{"$date":"2020-09-09T06:27:30.518+00:00"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn65","msg":"client metadata","attr":{"remote":"172.21.0.4:59214","client":"conn65","doc":{"driver":{"name":"nodejs|Mongoose","version":"3.6.1"},"os":{"type":"Linux","name":"linux","architecture":"x64","version":"4.15.0-112-generic"},"platform":"'Node.js v11.15.0, LE (unified)","version":"3.6.1|5.10.3"}}}
m-i-admin                    | { useNewUrlParser: true,
m-i-admin                    |   useUnifiedTopology: true,
m-i-admin                    |   useCreateIndex: true }
m-i-admin                    | mongodb://root:root@mongo:27017/development-db-pitang?authSource=admin
m-i-admin                    | mongodb://root:root@mongo:27017/development-db-pitang?authSource=admin
mongo_1                      | {"t":{"$date":"2020-09-09T06:27:30.682+00:00"},"s":"I",  "c":"NETWORK",  "id":22943,   "ctx":"listener","msg":"connection accepted","attr":{"remote":"172.21.0.4:59220","sessionId":66,"connectionCount":7}}
mongo_1                      | {"t":{"$date":"2020-09-09T06:27:30.683+00:00"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn66","msg":"client metadata","attr":{"remote":"172.21.0.4:59220","client":"conn66","doc":{"driver":{"name":"nodejs|Mongoose","version":"3.6.1"},"os":{"type":"Linux","name":"linux","architecture":"x64","version":"4.15.0-112-generic"},"platform":"'Node.js v11.15.0, LE (unified)","version":"3.6.1|5.10.3"}}}
mongo_1                      | {"t":{"$date":"2020-09-09T06:27:30.684+00:00"},"s":"I",  "c":"NETWORK",  "id":22943,   "ctx":"listener","msg":"connection accepted","attr":{"remote":"172.21.0.4:59222","sessionId":67,"connectionCount":8}}
mongo_1                      | {"t":{"$date":"2020-09-09T06:27:30.686+00:00"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn67","msg":"client metadata","attr":{"remote":"172.21.0.4:59222","client":"conn67","doc":{"driver":{"name":"nodejs|Mongoose","version":"3.6.1"},"os":{"type":"Linux","name":"linux","architecture":"x64","version":"4.15.0-112-generic"},"platform":"'Node.js v11.15.0, LE (unified)","version":"3.6.1|5.10.3"}}}
mongo_1                      | {"t":{"$date":"2020-09-09T06:27:30.687+00:00"},"s":"I",  "c":"ACCESS",   "id":20250,   "ctx":"conn67","msg":"Successful authentication","attr":{"mechanism":"SCRAM-SHA-256","principalName":"root","authenticationDatabase":"admin","client":"172.21.0.4:59222"}}
mongo_1                      | {"t":{"$date":"2020-09-09T06:27:30.849+00:00"},"s":"I",  "c":"NETWORK",  "id":22944,   "ctx":"conn66","msg":"connection ended","attr":{"remote":"172.21.0.4:59220","connectionCount":7}}
mongo_1                      | {"t":{"$date":"2020-09-09T06:27:30.849+00:00"},"s":"I",  "c":"NETWORK",  "id":22944,   "ctx":"conn65","msg":"connection ended","attr":{"remote":"172.21.0.4:59214","connectionCount":5}}
mongo_1                      | {"t":{"$date":"2020-09-09T06:27:30.850+00:00"},"s":"I",  "c":"NETWORK",  "id":22944,   "ctx":"conn64","msg":"connection ended","attr":{"remote":"172.21.0.4:59212","connectionCount":4}}
mongo_1                      | {"t":{"$date":"2020-09-09T06:27:30.849+00:00"},"s":"I",  "c":"NETWORK",  "id":22944,   "ctx":"conn67","msg":"connection ended","attr":{"remote":"172.21.0.4:59222","connectionCount":6}}
mongo_1                      | {"t":{"$date":"2020-09-09T06:27:30.850+00:00"},"s":"I",  "c":"-",        "id":20883,   "ctx":"conn63","msg":"Interrupted operation as its client disconnected","attr":{"opId":25930}}
mongo_1                      | {"t":{"$date":"2020-09-09T06:27:30.850+00:00"},"s":"I",  "c":"NETWORK",  "id":22944,   "ctx":"conn63","msg":"connection ended","attr":{"remote":"172.21.0.4:59210","connectionCount":3}}
m-i-admin exited with code 0

created time in 2 months

PR opened needle-innovision/nestjs-tenancy

Update README.md
+16 -4

0 comment

1 changed file

pr created time in 2 months

push eventgapinto/nestjs-tenancy

Guilherme Andrade

commit sha d0fe7e585a289aa9bb1866713bfdd8f69abf4c30

Update README.md

view details

push time in 2 months

push eventgapinto/nestjs-tenancy

Guilherme Andrade

commit sha 05619d389cb4ab07a330ba8f08bf96de912b9b52

Update README.md

view details

push time in 2 months

issue openedneedle-innovision/nestjs-tenancy

Subdomains is not being identified correctly

For example:

I'm using postman to simulate a subdomain: gap.tenancy.com.br The subdomain returned is tenancy, where the correct subdomain should be gap.

I have edited my etc/hosts to something like this:

127.0.0.1 gap.tenancy.com.br

https://github.com/needle-innovision/nestjs-tenancy/blob/117280bb2ce508a0f1a4336715c78ffe093522ec/lib/tenancy-core.module.ts#L176

created time in 2 months

fork gapinto/nestjs-tenancy

Multi-tenancy approach for nestjs - currently supported only for mongodb with mongoose

fork in 2 months

startedneedle-innovision/nestjs-tenancy

started time in 2 months

push eventgapinto/time-saver

Guilherme Andrade Pinto

commit sha b1e77da8f4eb1fc6ac95edb1b18098eeacab9fcf

Change require to import

view details

Guilherme Andrade Pinto

commit sha ca04c8b7fdeddc91bac0b0aa72e9292dec976793

Change require to impot

view details

Guilherme Andrade

commit sha 5e1bfa16325cde0ab9e03125b769ff105342e76a

Merge pull request #1 from gapinto/feature/change-requires-to-import Change require to import

view details

push time in 2 months

push eventgapinto/time-saver

Guilherme Andrade Pinto

commit sha ca04c8b7fdeddc91bac0b0aa72e9292dec976793

Change require to impot

view details

push time in 2 months

PR opened gapinto/time-saver

Change require to import
+37 -38

0 comment

11 changed files

pr created time in 2 months

push eventgapinto/time-saver

Guilherme Andrade Pinto

commit sha b1e77da8f4eb1fc6ac95edb1b18098eeacab9fcf

Change require to import

view details

push time in 2 months

create barnchgapinto/time-saver

branch : feature/change-requires-to-import

created branch time in 2 months

startedgapinto/time-saver

started time in 2 months

create barnchgapinto/time-saver

branch : master

created branch time in 2 months

created repositorygapinto/time-saver

created time in 2 months

create barnchgapinto/time-saver

branch : enh/js-doc

created branch time in 2 months

push eventgapinto/time-saver

Guilherme Andrade

commit sha e7fcec912fd3779d803155819d9f085516aa088c

Delete package-lock.json

view details

push time in 2 months

delete branch gapinto/time-saver

delete branch : apple/enh/comments-and-dots

delete time in 2 months

create barnchgapinto/time-saver

branch : apple/enh/comments-and-dots

created branch time in 2 months

delete branch gapinto/time-saver

delete branch : enh/moving-parameters-to-yml

delete time in 2 months

push eventgapinto/time-saver

Guilherme Andrade

commit sha 5fe4209b4e08069f035d2e31b55eeae3c25daeaf

First commit

view details

Guilherme Andrade

commit sha 5aa4e1a15627ed218a8278f45d312d1c2c138e79

Rename service domain

view details

Guilherme Andrade

commit sha 7f032b862de0fa256613b1303a816a10fc034eef

First commit

view details

Guilherme Andrade

commit sha 0f94f69219eaf948e5acda17564080c6532fb9de

Moving parameters to parameters.yaml

view details

Guilherme Andrade

commit sha 7c0e78a0cbd3be59638686829d55d687f8f9d023

change parameters

view details

Guilherme Andrade

commit sha f1895b5d640e369c97a938ea930e36d5d393ff4d

Merge pull request #1 from gapinto/enh/moving-parameters-to-yml Moving parameters to yaml file

view details

push time in 2 months

PR opened gapinto/time-saver

Moving parameters to yml
+5577 -36

0 comment

12 changed files

pr created time in 2 months

push eventgapinto/time-saver

Guilherme Andrade

commit sha cf506b23ac8fdba4dc321d5cc5ffc4f1311a07ce

First commit

view details

Guilherme Andrade

commit sha 5fe4209b4e08069f035d2e31b55eeae3c25daeaf

First commit

view details

Guilherme Andrade

commit sha 5aa4e1a15627ed218a8278f45d312d1c2c138e79

Rename service domain

view details

Guilherme Andrade

commit sha 7f032b862de0fa256613b1303a816a10fc034eef

First commit

view details

Guilherme Andrade

commit sha 0f94f69219eaf948e5acda17564080c6532fb9de

Moving parameters to parameters.yaml

view details

Guilherme Andrade

commit sha 7c0e78a0cbd3be59638686829d55d687f8f9d023

change parameters

view details

push time in 2 months

create barnchgapinto/time-saver

branch : enh/moving-parameters-to-yml

created branch time in 2 months

delete branch gapinto/time-saver

delete branch : enh/moving-parameters-to-yml

delete time in 2 months

create barnchgapinto/time-saver

branch : enh/moving-parameters-to-yml

created branch time in 2 months

push eventgapinto/time-saver

Guilherme Andrade

commit sha cf506b23ac8fdba4dc321d5cc5ffc4f1311a07ce

First commit

view details

push time in 2 months

startedgapinto/time-saver

started time in 2 months

create barnchgapinto/time-saver

branch : master

created branch time in 2 months

created repositorygapinto/time-saver

created time in 2 months

more