You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-22Lines changed: 16 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,42 +22,36 @@ description: This project deploys a restaurant review web application using Fast
22
22
23
23
This project deploys a web application for a restaurnant review site using FastAPI. The application can be deployed to Azure with Azure App Service using the [Azure Developer CLI](https://learn.microsoft.com/azure/developer/azure-developer-cli/overview).
24
24
25
-
## Opening the project
26
25
27
-
This project has [Dev Container support](https://code.visualstudio.com/docs/devcontainers/containers), so it will be setup automatically if you open it in Github Codespaces or in local VS Code with the [Dev Containers extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers).
26
+
## Run the sample
28
27
29
-
If you're *not* using one of those options for opening the project, then you'll need to:
28
+
This project has a [dev container configuration](.devcontainer/), which makes it easier to develop apps locally, deploy them to Azure, and monitor them. The easiest way to run this sample application is inside a GitHub codespace. Follow these steps:
30
29
31
-
1.Start up a local PostgreSQL server, create a database for the app, and set the following environment variables according to your database configuration.
30
+
1.Fork this repository to your account. For instructions, see [Fork a repo](https://docs.github.com/get-started/quickstart/fork-a-repo).
32
31
33
-
```shell
34
-
export POSTGRES_HOST=localhost
35
-
export POSTGRES_PORT=5432
36
-
export POSTGRES_DATABASE=<YOUR DATABASE>
37
-
export POSTGRES_USERNAME=<YOUR USERNAME>
38
-
export POSTGRES_PASSWORD=<YOUR PASSWORD>
39
-
```
32
+
1. From the repository root of your fork, select **Code** > **Codespaces** > **+**.
40
33
41
-
1.Create a [Python virtual environment](https://docs.python.org/3/tutorial/venv.html#creating-virtual-environments) and activate it.
34
+
1.In the codespace terminal, run the following commands:
0 commit comments