Skip to content

Commit eb15a8d

Browse files
authored
Move app to root directory (#36)
1 parent ac96c09 commit eb15a8d

File tree

13 files changed

+22
-19
lines changed

13 files changed

+22
-19
lines changed

.gitignore

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
1+
**/*.db
2+
**/*.ipynb
13
**/*.pyc
2-
**/.DS_Store
34
**/*.swp
5+
**/.DS_Store
46
**/.web
5-
**/*.db
6-
**/*.ipynb
77
**/node_modules/**
8-
**/package.json
98
**/package-lock.json
10-
bun.lockb
11-
poetry.lock
12-
frontend.zip
13-
backend.zip
9+
**/package.json
10+
*.db
11+
*.py[cod]
1412
.vscode
13+
.web
14+
__pycache__/
15+
backend.zip
16+
bun.lockb
1517
dist/*
16-
venv/
18+
frontend.zip
19+
poetry.lock
20+
venv/

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,17 @@ To get started with Reflex, you'll need:
2828
- Node.js 12.22.0+ \(No JavaScript knowledge required!\)
2929
- Pip dependencies: `reflex`, `openai`
3030

31-
Install `pip` dependencies with the provided `webui/requirements.txt`:
31+
Install `pip` dependencies with the provided `requirements.txt`:
3232

3333
```bash
34-
pip install -r reflex-chat/webui/requirements.txt
34+
pip install -r requirements.txt
3535
```
3636

3737
### 🚀 3. Run the application
3838

39-
Navigate to the `webui/` directory, initialize and run the app:
39+
Initialize and run the app:
4040

4141
```
42-
cd reflex-chat/webui/
4342
reflex init
4443
reflex run
4544
```
File renamed without changes.
File renamed without changes.

webui/webui/webui.py renamed to chat/chat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""The main Chat app."""
22

33
import reflex as rx
4-
from webui.components import chat, navbar
4+
from chat.components import chat, navbar
55

66

77
def index() -> rx.Component:
File renamed without changes.

webui/webui/components/chat.py renamed to chat/components/chat.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import reflex as rx
22

3-
from webui.components import loading_icon
4-
from webui.state import QA, State
3+
from chat.components import loading_icon
4+
from chat.state import QA, State
55

66

77
message_style = dict(display="inline-block", padding="1em", border_radius="8px", max_width=["30em", "30em", "50em", "50em", "50em", "50em"])

webui/webui/components/modal.py renamed to chat/components/modal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import reflex as rx
2-
from webui.state import State
2+
from chat.state import State
33

44

55
def modal() -> rx.Component:

webui/webui/components/navbar.py renamed to chat/components/navbar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import reflex as rx
2-
from webui.state import State
2+
from chat.state import State
33

44
def sidebar_chat(chat: str) -> rx.Component:
55
"""A sidebar chat item.

0 commit comments

Comments
 (0)