Reference implementation of a React app using Golem underneath
The purpose of this example is to show how to interact with a local Yagna node from a React application. The application is a simple image classifier that uses a pre-trained model to detect objects in an image. The source of the Golem image containing the model is the /detr-golem-image-source directory.
The application is built with Vite and React. It uses Golem React SDK to interact with the Golem network. For styling, it uses Tailwind CSS and DaisyUI.
To get started with the Golem React SDK, please refer to the documentation.
npm install
yagna service run --api-allow-origin='localhost:5173'
npm run dev
You can now access the application at http://localhost:5173.