like-gold
like-gold3mo ago

App CRM application

Hey all, I am trying to fork the App CRM application for a personal project, and I need help understanding how to create my own backend so I can alter the existing values. Please help
3 Replies
kapa.ai
kapa.ai3mo ago
Hi @BadWolf. 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 guide you on how to create your own backend for the App CRM application. The backend for the CRM application in Refine is built using Nest.js with the Nest.js Query package. While the exact source code for the backend isn't publicly available, you can generate a similar backend using the Nest.js Query package. 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,
}
You can explore the entire schema from here (https://api.crm.refine.dev/graphql). For more details on how to configure the backend, you can refer to the official documentation (https://refine.dev/docs/data/packages/nestjs-query/#backend-configuration) of Refine. To try the CRM application on your local, you can use the following command:
npm create refine-app@latest -- --example app-crm
npm create refine-app@latest -- --example app-crm
I hope this helps! Let me know if you have any other questions. Sources: - Discord Support Thread (https://discord.com/channels/837692625737613362/1172870715482054797) - Discord Support Thread (https://discord.com/channels/837692625737613362/1195933792368611359) - GitHub (https://github.com/refinedev/refine/blob/master/examples/app-crm/README.md) ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai3mo ago
<@833762644170113066> kapa.ai is still learning and improving, please let us know how it did by reacting below
like-gold
like-gold3mo ago
@Batu I saw someone asking you about this in another thread, can you please help?