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
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,13 +59,22 @@ Clone the repository if you haven't done so already, then follow these steps to
59
59
60
60
To run the application locally, follow these steps:
61
61
62
+
> Note: Ensure you have activated your pipenv shell by running `pipenv shell`.
63
+
62
64
1. Ensure all dependencies are installed using Pipenv.
65
+
```bash
66
+
pipenv install
67
+
```
63
68
2. Start your Docker containers if the application requires any external services like databases.
64
-
3. Use the following command to run the application under the ``src``:
69
+
3. Use the following command to run the application under the ``src`` directory:
65
70
```shell
66
71
flask run
67
72
```
68
73
Adjust the command based on your application's entry point if different.
74
+
4. Alternatively, run the following command to start the application, at the root path of the project if there is any port conflict on your machine:
75
+
```shell
76
+
flask run --host=127.0.0.1 --port=5001
77
+
```
69
78
70
79
> **NOTE:** If your frontend is also running, ensure it is configured to communicate with this backend API. You may need to set the API URL in your frontend configuration.
71
80
> Also, you might need to use CORS (Cross-Origin Resource Sharing) if your frontend and backend are served from different origins. You can use the `flask-cors` package to handle this:
0 commit comments