Usa l’API di Craft per creare con Replit
Con l’API attiva, i tuoi documenti Craft sono pronti ad alimentare le app che crei. Da lì puoi passare a Replit e costruire qualcosa di nuovo con i dati del tuo documento.
Enabling the API for Documents
First, you have to enable the API in order for Craft to setup an API endpoint for your documents. Then, you use the API endpoint URL to connect to the server from Replit.

Step 1

Step 2

Step 3

Step 4

Step 5

Step 6
Using the API in a Replit Prompt
Once the API is enabled for your Craft docs, you can now focus on writing a prompt that Replit will use to generate your project.
In order for Replit to see how to use the API and understand the structure of your document, you attach the AI bundle to your prompt. This bundle is a markdown document that contains the current content of your Craft doc as well as the API documentation.

Step 1

Step 2

Step 3
Ora puoi aggiungere un prompt per descrivere l’app che vuoi creare. Ecco un esempio molto generico che puoi usare per fare dei test:
Crea un sito web che visualizzi il contenuto dei miei documenti Craft collegati, perfavore. Trovi le istruzioni su come accedere a questi dati e alla loro struttura nel file allegato.

Step 4





