akshitagupta15june / PetMe-Prod

PetMe-Prod is an all-in-one platform that allows animals to be adopted, donated to pet lovers, and provides emergency medical care to stray animals in need.
https://pet-me-prod-pet-me-frontend.vercel.app/
MIT License
16 stars 34 forks source link

[FEAT] Setup base routing structure #6

Closed cb7chaitanya closed 4 months ago

cb7chaitanya commented 4 months ago

Setup base routing structure for the backend Also initiated a singleton prisma client design pattern, to avoid creating multiple connection instances to the database across every model

Tanishq1604 commented 4 months ago

U needs to change the code a bit that as we are only working with js for now and in SRC u have used ts and in root folder of backend we have index.js that is actually listening to ports and in SRC u have server.ts and that is also doing app.listen

And I have one doubt u are using import from so , I may be wrong but just asking that u used "type":module in the package.json or it is just getting used from root package json

cb7chaitanya commented 4 months ago

I didn't initialise the project in TS, it was already setup that way when i took an updated pull, so just went along with it