hugolepot
hugolepot
TTCTheo's Typesafe Cult
Created by hugolepot on 6/12/2023 in #questions
Use NextAuth as a microservice
haha "modern" yess ...
30 replies
TTCTheo's Typesafe Cult
Created by hugolepot on 6/12/2023 in #questions
Use NextAuth as a microservice
No it's as we want they just said APIs
30 replies
TTCTheo's Typesafe Cult
Created by hugolepot on 6/12/2023 in #questions
Use NextAuth as a microservice
That's what I did
30 replies
TTCTheo's Typesafe Cult
Created by hugolepot on 6/12/2023 in #questions
Use NextAuth as a microservice
But I understand your points when saying that we should the language that fit the most with the need
30 replies
TTCTheo's Typesafe Cult
Created by hugolepot on 6/12/2023 in #questions
Use NextAuth as a microservice
Specifications also Say only ts
30 replies
TTCTheo's Typesafe Cult
Created by hugolepot on 6/12/2023 in #questions
Use NextAuth as a microservice
There are also other specifications like doing a load balancer manually and an api gatway that will redirect all the calls to the correct APIs
30 replies
TTCTheo's Typesafe Cult
Created by hugolepot on 6/12/2023 in #questions
Use NextAuth as a microservice
I agree with you too guys. Knowing the basics is really important but I already did several projects with those languages to really understand things work. But here the goal of the project is to be at the end of the month as close as possible to a ubereats clone so winning time on API developpement is a must
30 replies
TTCTheo's Typesafe Cult
Created by hugolepot on 6/12/2023 in #questions
Use NextAuth as a microservice
No not exactly because we need to be able to start new microservices from a back office
30 replies
TTCTheo's Typesafe Cult
Created by hugolepot on 6/12/2023 in #questions
Use NextAuth as a microservice
It was in the specifications
30 replies
TTCTheo's Typesafe Cult
Created by hugolepot on 6/12/2023 in #questions
Use NextAuth as a microservice
Microservice
30 replies
TTCTheo's Typesafe Cult
Created by hugolepot on 6/12/2023 in #questions
Use NextAuth as a microservice
Yes microservice architecture IS overkill but since the project is cloning uber eats, we need to use a scalable architecture
30 replies
TTCTheo's Typesafe Cult
Created by hugolepot on 6/12/2023 in #questions
Use NextAuth as a microservice
Ok that's what I taught 😦 i'll check oauth2-proxy Thank's for your anwser Using a microservice architecture was mandatory for a school project and since i already used the T3 Stack in the past, i wanted to use it for this project 👍
30 replies
TTCTheo's Typesafe Cult
Created by hugolepot on 5/27/2023 in #questions
Execute an external TS file in a T3 Stack app
Thanks @bedesqui With "type": module and npx ts-node --esm src/scripts/updateFiles.ts I got this error :
/home/hugo/web/replayer/node_modules/ts-node/dist-raw/node-internal-modules-esm-resolve.js:366
throw new ERR_MODULE_NOT_FOUND(
^
CustomError: Cannot find module '/home/hugo/web/replayer/src/utils/translater/HandManagerV2' imported from /home/hugo/web/replayer/src/scripts/updateFiles.ts
at finalizeResolution (/home/hugo/web/replayer/node_modules/ts-node/dist-raw/node-internal-modules-esm-resolve.js:366:11)
at moduleResolve (/home/hugo/web/replayer/node_modules/ts-node/dist-raw/node-internal-modules-esm-resolve.js:801:10)
at Object.defaultResolve (/home/hugo/web/replayer/node_modules/ts-node/dist-raw/node-internal-modules-esm-resolve.js:912:11)
at /home/hugo/web/replayer/node_modules/ts-node/src/esm.ts:218:35
at entrypointFallback (/home/hugo/web/replayer/node_modules/ts-node/src/esm.ts:168:34)
at /home/hugo/web/replayer/node_modules/ts-node/src/esm.ts:217:14
at addShortCircuitFlag (/home/hugo/web/replayer/node_modules/ts-node/src/esm.ts:409:21)
at resolve (/home/hugo/web/replayer/node_modules/ts-node/src/esm.ts:197:12)
at resolve (/home/hugo/web/replayer/node_modules/ts-node/src/child/child-loader.ts:15:39)
at nextResolve (node:internal/modules/esm/loader:163:28)
/home/hugo/web/replayer/node_modules/ts-node/dist-raw/node-internal-modules-esm-resolve.js:366
throw new ERR_MODULE_NOT_FOUND(
^
CustomError: Cannot find module '/home/hugo/web/replayer/src/utils/translater/HandManagerV2' imported from /home/hugo/web/replayer/src/scripts/updateFiles.ts
at finalizeResolution (/home/hugo/web/replayer/node_modules/ts-node/dist-raw/node-internal-modules-esm-resolve.js:366:11)
at moduleResolve (/home/hugo/web/replayer/node_modules/ts-node/dist-raw/node-internal-modules-esm-resolve.js:801:10)
at Object.defaultResolve (/home/hugo/web/replayer/node_modules/ts-node/dist-raw/node-internal-modules-esm-resolve.js:912:11)
at /home/hugo/web/replayer/node_modules/ts-node/src/esm.ts:218:35
at entrypointFallback (/home/hugo/web/replayer/node_modules/ts-node/src/esm.ts:168:34)
at /home/hugo/web/replayer/node_modules/ts-node/src/esm.ts:217:14
at addShortCircuitFlag (/home/hugo/web/replayer/node_modules/ts-node/src/esm.ts:409:21)
at resolve (/home/hugo/web/replayer/node_modules/ts-node/src/esm.ts:197:12)
at resolve (/home/hugo/web/replayer/node_modules/ts-node/src/child/child-loader.ts:15:39)
at nextResolve (node:internal/modules/esm/loader:163:28)
10 replies
TTCTheo's Typesafe Cult
Created by hugolepot on 5/27/2023 in #questions
Execute an external TS file in a T3 Stack app
@bedesqui Do you have any ideas of how I can fix this problem please ?
10 replies
TTCTheo's Typesafe Cult
Created by hugolepot on 5/27/2023 in #questions
Execute an external TS file in a T3 Stack app
Yes i got an error : Command :
npx ts-node src/scripts/updateFiles.ts
npx ts-node src/scripts/updateFiles.ts
I got this error :
TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /home/hugo/web/replayer/src/scripts/updateFiles.ts
at new NodeError (node:internal/errors:399:5)
at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:79:11)
at defaultGetFormat (node:internal/modules/esm/get_format:121:38)
at defaultLoad (node:internal/modules/esm/load:81:20)
at nextLoad (node:internal/modules/esm/loader:163:28)
at ESMLoader.load (node:internal/modules/esm/loader:605:26)
at ESMLoader.moduleProvider (node:internal/modules/esm/loader:457:22)
at new ModuleJob (node:internal/modules/esm/module_job:64:26)
at ESMLoader.#createModuleJob (node:internal/modules/esm/loader:480:17)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:434:34) {
code: 'ERR_UNKNOWN_FILE_EXTENSION'
}
TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /home/hugo/web/replayer/src/scripts/updateFiles.ts
at new NodeError (node:internal/errors:399:5)
at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:79:11)
at defaultGetFormat (node:internal/modules/esm/get_format:121:38)
at defaultLoad (node:internal/modules/esm/load:81:20)
at nextLoad (node:internal/modules/esm/loader:163:28)
at ESMLoader.load (node:internal/modules/esm/loader:605:26)
at ESMLoader.moduleProvider (node:internal/modules/esm/loader:457:22)
at new ModuleJob (node:internal/modules/esm/module_job:64:26)
at ESMLoader.#createModuleJob (node:internal/modules/esm/loader:480:17)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:434:34) {
code: 'ERR_UNKNOWN_FILE_EXTENSION'
}
10 replies
TTCTheo's Typesafe Cult
Created by hugolepot on 5/27/2023 in #questions
Execute an external TS file in a T3 Stack app
yes, in my case I store information in a db and i need to update all the record of the database but I don't want any access on the app itself just be able to update it by executing a file. If you need the code of the file I try to execute I can provide it to you !
10 replies