-
Notifications
You must be signed in to change notification settings - Fork 377
Add GitHub workflows and review documentation for Copilot exercises #14
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
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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 |
---|---|---|
|
@@ -10,14 +10,14 @@ In this step, we will accomplish the following: | |
2. Click the GitHub Copilot Chat click the :paperclip: and add "Open Editors" to the prompt. | ||
3. Copy and paste the following prompt in the GitHub Copilot Chat and select the "Agent" instead of "Ask" or "Edit" from the drop down where you are inserting the prompt. | ||
|
||
<img src="https://github.com/user-attachments/assets/0c8e4ace-1f39-4c5d-8232-379fcf5316c1" width=60% height=60%> | ||
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. Delete |
||
<img src="https://github.com/user-attachments/assets/e172f5c0-bc2a-45a9-a301-9af8bfbd6a2e" width=60% height=60%> | ||
|
||
>[!NOTE] | ||
> [!NOTE] | ||
> Do not change the model from GPT-4o this will be an optional activity at the end of the course. | ||
> Keep in mind that the Copilot agent mode is conversational so it may ask you questions and you can ask it questions too. | ||
> Wait a moment for the Copilot to respond and press the continue button to execute commands presented by Copilot agent mode. | ||
> Keep files created and updated by Copilot agent mode until it is finished. | ||
> Agent mode has the ability to evaluate your code base and execute commands and add/refactor/delete parts of your code base and automatically self heal if it or you make a mistake in the process. | ||
> Agent mode has the ability to evaluate your code base and execute commands and add/refactor/delete parts of your code base and automatically self heal if it or you makes a mistake in the process. | ||
|
||
### :keyboard: Activity: Prompt for GitHub Copilot in agent mode to start the creation of our application | ||
|
||
|
@@ -33,18 +33,19 @@ In this step, we will accomplish the following: | |
> | ||
> Don't proceed with the next activity until all of these steps are completed. | ||
>``` | ||
> | ||
|
||
> [!IMPORTANT] | ||
> Once the above activity installs all the required packages, proceed to the next activity. | ||
|
||
### :keyboard: Activity: Let's install MongoDB | ||
### :keyboard: Activity: Let's install mongoDB | ||
|
||
> **Prompt** | ||
> | ||
> ```prompt | ||
> Based on the example monafit tracker app in the docs/mona-high-school-fitness-tracker.md file and use octofit as the name for Mergington's high school's app. Let's install MongoDB. | ||
> Based on the example monafit tracker app in the docs/mona-high-school-fitness-tracker.md file and use octofit as the name for mergington's high schools app. > Let's install mongoDB. | ||
> | ||
> 1. Install MongoDB and make sure the command is complete. | ||
> 1. Install mongoDB and make sure the command is complete. | ||
arilivigni marked this conversation as resolved.
Show resolved
Hide resolved
|
||
> | ||
> Don't proceed with the next activity until all of these steps are completed. | ||
>``` | ||
|
@@ -53,15 +54,15 @@ In this step, we will accomplish the following: | |
> If the command completes in the terminal but agent mode shows it is still running click stop. | ||
> You may need to paste the prompt again in agent mode. | ||
|
||
### :keyboard: Activity: Let's start and verify MongoDB is running | ||
### :keyboard: Activity: Let's start and verify mongoDB is running | ||
|
||
> **Prompt** | ||
> | ||
> ```prompt | ||
> Based on the example monafit tracker app in the docs/mona-high-school-fitness-tracker.md file and use octofit as the name for Mergington's high school's app. Let's start and verify MongoDB is running. | ||
> Based on the example monafit tracker app in the docs/mona-high-school-fitness-tracker.md file and use octofit as the name for mergington's high schools app. > Let's start and verify mongoDB is running. | ||
> | ||
> 1. Start the MongoDB service. | ||
> 2. Verify the MongoDB service is running. | ||
> 1. Start the mongoDB service. | ||
> 2. Verify the mongoDB service running. | ||
arilivigni marked this conversation as resolved.
Show resolved
Hide resolved
|
||
> | ||
> Don't proceed with the next activity until all of these steps are completed. | ||
>``` | ||
|
@@ -73,6 +74,19 @@ In this step, we will accomplish the following: | |
> If the command completes in the terminal but agent mode shows it is still running click stop. | ||
> You may need to paste the prompt again in agent mode. | ||
|
||
## Next step | ||
1. Now that we have created the app directory structure, setup a Python virtual environment, and Copilot agent mode helped write a requirements.txt to install all project dependencies let's check our changes in to our `build-octofit-app` branch. | ||
|
||
1. With our new changes complete, please **commit** and **push** the changes to GitHub. | ||
|
||
1. Wait a moment for Mona to check your work, provide feedback, and share the final lesson. Almost done! | ||
|
||
<details> | ||
<summary>Having trouble? 🤷</summary><br/> | ||
|
||
If you don't get feedback, here are some things to check: | ||
|
||
- Make sure your commit changes were made for the following file to the branch `build-octofit-app` and pushed/synchronized to GitHub: | ||
- `octofit-tracker/backend/requirements.txt` and it contains the package `Django==4.1` | ||
- If Mona found a mistake, simply make a correction and push your changes again. Mona will check your work as many times as needed. | ||
|
||
Now that the application structure and initial setup is complete, let's continue on to the next step [Step 3: Database and Django Project Setup](./3-database-django-project-setup.md) | ||
</details> |
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Delete