Skip to content

Commit

Permalink
feat/demo-running-instructions (#56)
Browse files Browse the repository at this point in the history
Co-authored-by: Samuel Colvin <[email protected]>
  • Loading branch information
paddymul and samuelcolvin authored Dec 4, 2023
1 parent f0a9cbe commit 4d5ff76
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions python/demo/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,29 @@
# FastUI Demo

This a simple demo app for FastUI, it's deployed at [fastui-demo.onrender.com](https://fastui-demo.onrender.com).

## Running

To run the demo app, execute the following commands from the FastUI repo root

```bash
# create a virtual env
python3.11 -m venv env311
# activate the env
. env311/bin/activate
# install deps
make install
# run the demo server
make dev
```

Then navigate to [http://localhost:8000](http://localhost:8000)

If you want to run the dev version of the React frontend, run

```bash
npm install
npm run dev
```

This will run at [http://localhost:3000](http://localhost:3000), and connect to the backend running at `localhost:3000`.
1 change: 1 addition & 0 deletions python/requirements/all.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
-r ./lint.txt
-r ./pyproject.txt
uvicorn[standard]
httpx

0 comments on commit 4d5ff76

Please sign in to comment.