File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Add Olas to your dApp
22
33
4- ## set up the backend
4+ to run this example project, navigate into the ` packages/backend ` and run
5+
6+ ``` bash
7+ poetry shell
8+ ```
9+
10+ then run the app with
11+
12+ ``` bash
13+ python app.py
14+ ```
15+
16+ then navigate into the ` packages/react-app `
17+
18+ and run
19+
20+ ``` bash
21+ yarn run dev
22+ ```
23+
24+ and the app should be running
25+
26+
27+ ### set this up in an existing project
28+
29+
30+ ### set up the backend
531
632Set up a python project inside of our celo-composer. Or your existing dApp.
733
@@ -212,6 +238,7 @@ export default async function handler(
212238) {
213239 const prompt = req .query .prompt ; // Access the prompt sent from the frontend
214240 try {
241+ // make sure to later exchange this endpoint for a hosted version
215242 const { data } = await axios .get (` http://127.0.0.1:5000/get-prompt?prompt=${prompt } ` );
216243 res .status (200 ).json (data );
217244 } catch (error ) {
You can’t perform that action at this time.
0 commit comments