How to download the refine project in vanilla JavaScript?
Is there a way to download the web builder in refine.new using vanilla javascript code instead of typescript including all the example pages and functionality in the page?
I tried installing via
create refine-app@latest
but still ended up with typescript template.6 Replies
Hi @rifky1234. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
Yes, you can create a refine application using JavaScript instead of TypeScript. To do this, you can use the
create refine-app@latest
command with the --example with-javascript
option. This will create a new refine application using JavaScript. Here is the command:
This command will create a new refine application using JavaScript, as mentioned in the documentation (https://refine.dev/docs/examples/javascript).
However, please note that the create refine-app@latest
command also provides a CLI wizard that assists you with the setup process. If you want to add example pages to your application, you should select Yes
for the Do you want to add example pages?
option while using the CLI wizard. This will add sample CRUD pages to your application, utilizing refine Inferencer
and filling the resources
property.
After the setup is complete, you can start your application with the following command:
You can then access the refine application at <http://localhost:3000.> You will see the output as a table populated with blog_posts
and category
data with filtering, sorting, and pagination features, as mentioned in the quick start guide (https://refine.dev/docs/getting-started/quickstart).
----------------------
Note: you can ask me a follow up question by @ mentioning me again
:speech_balloon:
----------------------<@733337001042116758> kapa.ai is still learning and improving, please let us how it did by reacting below
metropolitan-bronze•15mo ago
@kapa.ai But the example project from
npm create refine-app@latest -- --example with-javascript
uses vanilla javascript right? I want to use next.js Is there a wayLet me check the knowledge base for you. One moment! :books:
----------------------
Yes, you can create a refine application using JavaScript with Next.js. To do this, you can use the
create refine-app@latest
command with the --example with-nextjs-javascript
option. This will create a new refine application using JavaScript and Next.js. Here is the command:
This command will create a new refine application using JavaScript and Next.js, as mentioned in the documentation (https://refine.dev/docs/examples/javascript).
After the setup is complete, you can start your application with the following command:
You can then access the refine application at <http://localhost:3000.>
----------------------
Note: you can ask me a follow up question by @ mentioning me again
:speech_balloon:
----------------------<@733337001042116758> kapa.ai is still learning and improving, please let us how it did by reacting below
metropolitan-bronze•15mo ago
@kapa.ai Ended up with following error
Could not locate an example named "with-nextjs-javascript"
and there is no similar example in the repo either