#How to create 2 different endpoints with code first approach

1 messages · Page 1 of 1 (latest)

storm marlin
#

You'd be better off building two apps. If you think you'd be saving on work by building the two endpoints in one app, you'd be mistaken, because you can't share types between the two endpoints. GraphQL would tell you it won't work.

You'd also be better off with two different apps from a scaling point of view. If your shop app gets a lot more traffic, you'd want to be able to scale it out and not the admin app with it, right?

ashen wadi
#

Not directly, the storefront will be a separate app that only uses the Shop API. However, I still have to build the appropriate resolvers, etc. in the main application, which contains the Admin API and the Shop API. As far as I can see, a lot of shops are doing this now, so I thought that was exactly the way to go.

#

the nestjs application is only the datalayer without ui or something

storm marlin
ashen wadi
#

We can Close this here i think WE dont understand each other and currently a have found a solution for me