deep-jade
deep-jade8mo ago

NestJs Data Providers Backend Example

Is there repo for these examples in documentation using Nest CRUD or Nest Query as data providers? Also is there backend used for new CRM repo?
11 Replies
kapa.ai
kapa.ai8mo ago
Hi @sensib0i. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Yes, there are examples in the documentation using Nest CRUD as a data provider. You can find the source code for the Nestjsx Crud Data Provider example on GitHub. Here is the link to the source code: Nestjsx Crud Data Provider Source Code (https://github.com/refinedev/refine/tree/master/examples/data-provider-nestjsx-crud) To run this example on your local machine, you can use the following command:
npm create refine-app@latest -- --example data-provider-nestjsx-crud
npm create refine-app@latest -- --example data-provider-nestjsx-crud
Source (https://refine.dev/docs/examples/data-provider/nestjsxCrud/) However, I couldn't find any information about a Nest Query data provider or a new CRM repo in the provided extracts. For more detailed information, you might want to check the official documentation or the GitHub repository of Refine. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai8mo ago
<@667849704293269515> kapa.ai is still learning and improving, please let us know how it did by reacting below
deep-jade
deep-jade8mo ago
@kapa.ai I want NestJS server used in these examples
kapa.ai
kapa.ai8mo ago
Let me check the knowledge base for you. One moment! :books: ---------------------- The extracts provided mention the use of NestJS in the context of the refine framework, but they do not provide specific details or examples of a NestJS server being used. In one of the blog posts, it's mentioned that a job-posting application is created using NestJS and the refine framework for the admin panel. The steps for this are available in this GitHub repository (https://github.com/refinedev/refine/tree/master/examples/blog-job-posting). However, the specific details of the NestJS server setup are not provided in the extracts. For detailed guidance on setting up a NestJS server, you may want to refer to the official NestJS documentation (https://docs.nestjs.com/). ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai8mo ago
<@667849704293269515> kapa.ai is still learning and improving, please let us know how it did by reacting below
eastern-cyan
eastern-cyan8mo ago
Hello @sensib0i, we don't have open-source CRM backend.
eastern-cyan
eastern-cyan8mo ago
We've used this library to generate backend, you can also do it easily: https://tripss.github.io/nestjs-query/
Nestjs-query | Nestjs-query
Easy CRUD for GraphQL.
vicious-gold
vicious-gold7mo ago
Hi @batuhanw, is there a reason for not sharing the backend repo for the examples? I'm sure it would really help a lot of us get started to better understand how the frontend/backend are setup to work together
stormy-gold
stormy-gold7mo ago
I would like that example as well. I think that it will be great learning resource. Great work on the lib and on examples as well, by the way,
generous-apricot
generous-apricot5mo ago
agreed
eastern-cyan
eastern-cyan5mo ago
Hello folks, we don't want to make backend repo public for maainly 2 reasons: - It's really simple, straightforward to handle that. We already explained the idea here: https://refine.dev/docs/data/packages/nestjs-query/#backend-configuration - Making it public will come with maintenance responsibility. Changing something on the backend code, needs to be tested, also our crm example needs to be tested/refactored if needed. In the documentation link I provide, it explains the whole logic already. If you spare some time and read nestjs-query documentation and this one, you'll understand, that building our CRM backend is a matter of creating these tables, entities, and resolvers. Mostly copy/paste stuff.
Nest.js Query | refine
Refine provides a data provider for APIs powered with Nest.js Query, a module for Nest.js that provides easier ways to build CRUD graphql APIs.