Skip to content

Commit b54002d

Browse files
Initial Commit
0 parents  commit b54002d

File tree

6 files changed

+50
-0
lines changed

6 files changed

+50
-0
lines changed

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
*.db
2+
*.py[cod]
3+
.web
4+
__pycache__/
5+
venv/

assets/favicon.ico

4.19 KB
Binary file not shown.

full_stack_python/__init__.py

Whitespace-only changes.
+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
"""Welcome to Reflex! This file outlines the steps to create a basic app."""
2+
3+
import reflex as rx
4+
5+
from rxconfig import config
6+
7+
8+
class State(rx.State):
9+
"""The app state."""
10+
11+
...
12+
13+
14+
def index() -> rx.Component:
15+
# Welcome Page (Index)
16+
return rx.container(
17+
rx.color_mode.button(position="bottom-left"),
18+
rx.vstack(
19+
rx.heading("Welcome to Reflex!", size="9"),
20+
rx.text(
21+
"Get started by editing ",
22+
rx.code(f"{config.app_name}/{config.app_name}.py"),
23+
size="5",
24+
),
25+
rx.link(
26+
rx.button("Check out our docs!"),
27+
href="https://reflex.dev/docs/getting-started/introduction/",
28+
is_external=True,
29+
),
30+
spacing="5",
31+
justify="center",
32+
min_height="85vh",
33+
),
34+
rx.logo(),
35+
)
36+
37+
38+
app = rx.App()
39+
app.add_page(index)

requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
reflex==0.5.3

rxconfig.py

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import reflex as rx
2+
3+
config = rx.Config(
4+
app_name="full_stack_python",
5+
)

0 commit comments

Comments
 (0)