-
Notifications
You must be signed in to change notification settings - Fork 157
docs: added readme for local setup #646
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,32 @@ | ||||||||||||||||||
# Guide to local development | ||||||||||||||||||
|
||||||||||||||||||
## Requirements: | ||||||||||||||||||
|
||||||||||||||||||
- Python 3.10 or higher + PIP | ||||||||||||||||||
- Azure CLI, and an Azure Subscription | ||||||||||||||||||
- Visual Studio Code IDE | ||||||||||||||||||
|
||||||||||||||||||
## Local Setup: | ||||||||||||||||||
|
||||||||||||||||||
Follow these steps to set up and run the application locally: | ||||||||||||||||||
|
||||||||||||||||||
### 1. Open the src Folder | ||||||||||||||||||
Navigate to the `src` folder of the repository using Visual Studio Code. | ||||||||||||||||||
|
||||||||||||||||||
### 2. Configure Environment Variables | ||||||||||||||||||
- Navigate to the `src` folder and create a `.env` file based on the provided `.env.sample` file. | ||||||||||||||||||
- Update the `.env` file with the required values from your Azure resource group in Azure Portal App Service environment variables. | ||||||||||||||||||
- Make sure to set APP_ENV to "**dev**" in `.env` file. | ||||||||||||||||||
|
||||||||||||||||||
### 3. (Optional) Python Virtual Environment | ||||||||||||||||||
- Navigate to the `src` folder, create and activate your virtual environment `venv` under `src` folder. | ||||||||||||||||||
|
||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This instruction lacks the specific commands needed to create and activate a virtual environment. Consider adding the actual commands: 'python -m venv venv' and 'source venv/bin/activate' (Linux/Mac) or 'venv\Scripts\activate' (Windows).
Suggested change
Windows: python -m venv venv
venv\Scripts\activate
Copilot uses AI. Check for mistakes. Positive FeedbackNegative Feedback |
||||||||||||||||||
### 4. Start the Application | ||||||||||||||||||
- Run `start.cmd` (Windows) or `start.sh` (Linux/Mac) to: | ||||||||||||||||||
- Install backend dependencies. | ||||||||||||||||||
- Install frontend dependencies. | ||||||||||||||||||
- Build the frontend. | ||||||||||||||||||
- Start the backend server. | ||||||||||||||||||
|
||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The instruction assumes these scripts exist but doesn't specify their location. Consider clarifying where these scripts are located (e.g., 'in the src folder') and what to do if they don't exist.
Suggested change
Copilot uses AI. Check for mistakes. Positive FeedbackNegative Feedback |
||||||||||||||||||
### 5. Access the Application | ||||||||||||||||||
Once the app is running, open your browser and navigate to [http://127.0.0.1:5000](http://127.0.0.1:5000). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The instruction should clarify the exact format for setting APP_ENV. Consider providing the complete line format, e.g., 'APP_ENV=dev' to make it clearer for developers.
Copilot uses AI. Check for mistakes.