-
Notifications
You must be signed in to change notification settings - Fork 329
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat/demo-running-instructions (#56)
Co-authored-by: Samuel Colvin <[email protected]>
- Loading branch information
1 parent
f0a9cbe
commit 4d5ff76
Showing
3 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
-r ./lint.txt | ||
-r ./pyproject.txt | ||
uvicorn[standard] | ||
httpx |