Skip to content

Commit 2d55bf5

Browse files
committed
add instructions to run the example
1 parent c623bf3 commit 2d55bf5

1 file changed

Lines changed: 28 additions & 1 deletion

File tree

packages/backend/README.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,33 @@
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

632
Set 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) {

0 commit comments

Comments
 (0)