Adrián Mouly
12/20/2021, 11:30 PM@types/mycompany and put it as a devDependency on both projects.
2. Put the backend project as a devDependency of the frontend project.
3. Use an “API client generator” like swagger/OpenApi or something similar that can auto-generate types. I don’t know much how to share the types here yet, but it’s a theory.
4. Use a mono-repo strategy… I don’t like this due my company already uses separated repos for each app.
What should I do? anybody else doing any of these?Matt Morgan
12/20/2021, 11:52 PMMatt Morgan
12/20/2021, 11:52 PMAdrián Mouly
12/20/2021, 11:53 PMMatt Morgan
12/20/2021, 11:54 PMJoão Pedro
12/21/2021, 2:14 AMkoa in your lambdas and do your routing through that (and serverless-http to use koa with lambdas)
2. also on the back-end use tsoa to generate a swagger based on your controllers
3. on the front-end use nswag to generate your api client and types based on the swaggerAdrián Mouly
12/21/2021, 2:23 PMDerek Kershner
12/21/2021, 4:56 PMpeerDependencies a lot.Adrián Mouly
12/21/2021, 4:56 PMAdrián Mouly
12/21/2021, 4:56 PMDerek Kershner
12/21/2021, 4:56 PMDerek Kershner
12/21/2021, 4:57 PMnpm i, npm update, just like any other package.Derek Kershner
12/21/2021, 4:59 PMDerek Kershner
12/21/2021, 5:00 PMDerek Kershner
12/21/2021, 5:01 PMDerek Kershner
12/21/2021, 5:03 PMAdrián Mouly
12/21/2021, 5:16 PMDerek Kershner
12/21/2021, 5:20 PMDerek Kershner
12/21/2021, 5:20 PMAdrián Mouly
12/21/2021, 5:20 PMAdrián Mouly
12/21/2021, 5:21 PMAdrián Mouly
12/21/2021, 5:21 PMAdrián Mouly
12/21/2021, 5:21 PMAdrián Mouly
12/21/2021, 5:21 PMdata package in the mono-repo.Adrián Mouly
12/21/2021, 5:21 PMAdrián Mouly
12/21/2021, 5:22 PMDerek Kershner
12/21/2021, 5:22 PMAdrián Mouly
12/21/2021, 5:22 PMAdrián Mouly
12/21/2021, 5:23 PMDerek Kershner
12/21/2021, 5:23 PMAdrián Mouly
12/21/2021, 5:23 PMAdrián Mouly
12/21/2021, 5:23 PMAdrián Mouly
12/21/2021, 5:23 PMDerek Kershner
12/21/2021, 5:23 PMAdrián Mouly
12/21/2021, 5:24 PMDerek Kershner
12/21/2021, 5:24 PMDerek Kershner
12/21/2021, 5:25 PM