
A minimal React setup for starting developing Tezos DApps quickly with Taquito.
git clone <YOUR_REPOSITORY_URL>
npm install
npm run dev
npm run build
npm run preview
For more information read the Vite Guide
Polyfill
Before we start we need to add the following dependencies in order to not get polyfill issues. The reason for this step is that certain required dependencies are Node APIs, thus not included in Browsers. But still needed for communication and interaction with Wallets and Smart Contracts. For a better understanding here are the steps described.
You do not need to do the steps as it is already configured.
Run
npm install buffer stream-browserify util events processThen create a new file
nodeSpecific.tsin the src folder of the project and add: ```js import { Buffer } from 'buffer'globalThis.Buffer = Buffer ```
Then open the
index.htmlfile and add the following script in the body. It should look like this:```js
//add this line ```
Finally open the
vite.config.tsfile and add theresolvepart:```js import { defineConfig } from 'vite' import react from '@vitejs/plugin-react-swc'
// https://vitejs.dev/config/ export default defineConfig({ define: { global: {}, }, plugins: [react()], resolve: { alias: { stream: 'stream-browserify', os: 'os-browserify/browser', util: 'util', process: 'process/browser', buffer: 'buffer', }, }, }) ```
Now we can run the app.
$ claude mcp add taquito-react-template \
-- python -m otcore.mcp_server <graph>