variable-lime
variable-lime3mo ago

CRM backend

Hi, I'm stuck while trying to re create the backend for the CRM example (really don't understand wjhy the team is reluctant to make it public). Could someone help me out with it, please?
5 Replies
kapa.ai
kapa.ai3mo ago
Hi @highondefi. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Sure, I can provide some guidance based on the information available. The backend for the CRM example app is not publicly available, but it's built using the Nest.js Query package with very little customization on top. You can explore the schema at <https://api.crm.refine.dev/graphql> (https://api.crm.refine.dev/graphql). Here's a basic example of how resolvers are defined in the backend:
{
pagingStrategy: PagingStrategies.OFFSET,
enableTotalCount: true,
EntityClass: CompanyEntity,
DTOClass: CompanyModel,
CreateDTOClass: CompanyCreateInput,
UpdateDTOClass: CompanyUpdateInput,
enableSubscriptions: true,
enableAggregate: true,
}
{
pagingStrategy: PagingStrategies.OFFSET,
enableTotalCount: true,
EntityClass: CompanyEntity,
DTOClass: CompanyModel,
CreateDTOClass: CompanyCreateInput,
UpdateDTOClass: CompanyUpdateInput,
enableSubscriptions: true,
enableAggregate: true,
}
The backend configuration details can be found in the Refine documentation (https://refine.dev/docs/data/packages/nestjs-query/#backend-configuration). The team has chosen not to make the backend repo public mainly because it's straightforward to handle and making it public would come with maintenance responsibility. They believe that by reading the Nest.js Query documentation and the provided documentation link, you'll understand that building the CRM backend is a matter of creating tables, entities, and resolvers, which is mostly copy/paste work. I hope this helps! If you have more specific questions, feel free to ask. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai3mo ago
<@766681574413828136> kapa.ai is still learning and improving, please let us know how it did by reacting below
variable-lime
variable-lime3mo ago
It is not. It is extremely frustrating and erroneous. Almost considering ababndoning refine. @Batu
ratty-blush
ratty-blush3mo ago
@Batu @highondefi Did you get to solve this?
continuing-cyan
continuing-cyan3mo ago
Hey, bot is already answered that many times before as we did. If you read the answer from the bot, you'll see the reason. We have example of how we built and provided necessary documentation links to do so.