Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Add command to clear node_modules for dev
  • Loading branch information
rossdanlm authored Dec 29, 2023
1 parent 1339f64 commit 8529c2f
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions python/src/aiconfig/editor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,20 +57,28 @@ e.g. `aiconfig edit --parsers-module-path="/path/to/my_editor_plugin.py"`

### Install:

`pip install -e path/to/local/aiconfig/python`

`alias aiconfig="python -m 'aiconfig.scripts.aiconfig_cli'"`
From the top-level `aiconfig` dir:
```bash
pip3 install -e aiconfig/python
alias aiconfig="python -m 'aiconfig.scripts.aiconfig_cli'"
```

### Run backend and frontend servers:

(debug mode will run the react server)
`aiconfig edit --aiconfig-path=/my/path --server-port=8080 --server-mode=debug_servers`
Replace the `aiconfig_path` variable with the path to your AIConfig file.
For example: `cookbooks/Getting-Started/travel.aiconfig.json`
```bash
rm -rf aiconfig/python/src/aiconfig/editor/client/node_modules
aiconfig_path="cookbooks/Getting-Started/travel.aiconfig.json"

# Use debug mode to run the frontend react server
aiconfig edit --aiconfig-path=$aiconfig_path --server-port=8080 --server-mode=debug_servers
```

More info:
`aiconfig --help`
`aiconfig edit --help`

### Frontent
### Frontend

Use React server localhost:3000

Expand Down

0 comments on commit 8529c2f

Please sign in to comment.