A
A
AE422020-06-07 20:14:06
Node.js
AE42, 2020-06-07 20:14:06

How to merge 2 servers?

Good evening!

I have a server with authorization (restapi)
AND a main server (apollo-server)

I use typeorm
All models are written on a second server

How can they be combined, not to be written, for each model server?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Robur, 2020-06-08
@Robur

If they are both written, for example, in express, then we can combine them without problems.
If on different http-servers, then just put the models in a shared folder/module. You can use monorepu (simpler), you can use npm module (more crap)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question