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: .github/steps/1-preparing.md
+10-2Lines changed: 10 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -118,6 +118,14 @@ Great work! Now that we are familiar with the app and we know it works, let's as
118
118
119
119
1. After a moment, look in the VS Code lower status bar, on the left, to see the active branch. It should now say `build-octofit-app`. If so, you are all done with this step!
120
120
121
-
## Next step
121
+
1. Now that your branch is pushed to GitHub, Mona should already be busy checking your work. Give her a moment and keep watch in the comments. You will see her respond with progress info and the next lesson.
122
122
123
-
Now that your branch is pushed to GitHub, let's continue on to the next step Step 2: Application Initial Setup - {{{next_step_file}}}.
123
+
<details>
124
+
<summary>Having trouble? 🤷</summary><br/>
125
+
126
+
If you don't get feedback, here are some things to check:
127
+
128
+
- Make sure your created the branch with the exact name `build-octofit-app`. No prefixes or suffixes.
129
+
- Make sure the branch was indeed published to your repository.
Copy file name to clipboardExpand all lines: .github/steps/2-application-initial-setup.md
+26-12Lines changed: 26 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -10,14 +10,14 @@ In this step, we will accomplish the following:
10
10
2. Click the GitHub Copilot Chat click the :paperclip: and add "Open Editors" to the prompt.
11
11
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.
> Do not change the model from GPT-4o this will be an optional activity at the end of the course.
17
17
> Keep in mind that the Copilot agent mode is conversational so it may ask you questions and you can ask it questions too.
18
18
> Wait a moment for the Copilot to respond and press the continue button to execute commands presented by Copilot agent mode.
19
19
> Keep files created and updated by Copilot agent mode until it is finished.
20
-
> 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.
20
+
> 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.
21
21
22
22
### :keyboard: Activity: Prompt for GitHub Copilot in agent mode to start the creation of our application
23
23
@@ -33,18 +33,19 @@ In this step, we will accomplish the following:
33
33
>
34
34
> Don't proceed with the next activity until all of these steps are completed.
35
35
>```
36
+
>
36
37
37
38
> [!IMPORTANT]
38
39
> Once the above activity installs all the required packages, proceed to the next activity.
39
40
40
-
### :keyboard: Activity: Let's install MongoDB
41
+
### :keyboard: Activity: Let's install mongoDB
41
42
42
43
> **Prompt**
43
44
>
44
45
> ```prompt
45
-
> 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.
46
+
> 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.
46
47
>
47
-
> 1. Install MongoDB and make sure the command is complete.
48
+
> 1. Install mongoDB and make sure the command is complete.
48
49
>
49
50
> Don't proceed with the next activity until all of these steps are completed.
50
51
>```
@@ -53,15 +54,15 @@ In this step, we will accomplish the following:
53
54
> If the command completes in the terminal but agent mode shows it is still running click stop.
54
55
> You may need to paste the prompt again in agent mode.
55
56
56
-
### :keyboard: Activity: Let's start and verify MongoDB is running
57
+
### :keyboard: Activity: Let's start and verify mongoDB is running
57
58
58
59
> **Prompt**
59
60
>
60
61
> ```prompt
61
-
> 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.
62
+
> 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.
62
63
>
63
-
> 1. Start the MongoDB service.
64
-
> 2. Verify the MongoDB service is running.
64
+
> 1. Start the mongoDB service.
65
+
> 2. Verify the mongoDB service running.
65
66
>
66
67
> Don't proceed with the next activity until all of these steps are completed.
67
68
>```
@@ -73,6 +74,19 @@ In this step, we will accomplish the following:
73
74
> If the command completes in the terminal but agent mode shows it is still running click stop.
74
75
> You may need to paste the prompt again in agent mode.
75
76
76
-
## Next step
77
+
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.
78
+
79
+
1. With our new changes complete, please **commit** and **push** the changes to GitHub.
80
+
81
+
1. Wait a moment for Mona to check your work, provide feedback, and share the final lesson. Almost done!
82
+
83
+
<details>
84
+
<summary>Having trouble? 🤷</summary><br/>
85
+
86
+
If you don't get feedback, here are some things to check:
87
+
88
+
- Make sure your commit changes were made for the following file to the branch `build-octofit-app` and pushed/synchronized to GitHub:
89
+
- `octofit-tracker/backend/requirements.txt` and it contains the package `Django==4.1`
90
+
- If Mona found a mistake, simply make a correction and push your changes again. Mona will check your work as many times as needed.
77
91
78
-
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)
- settings, models, serializers, urls, views, tests, and admin files.
8
8
- Populate the octofit_db database with test data.
9
9
- Verify the test data is populated in the octofit_db database.
10
10
11
11
1. Open all files in the `docs` folder and keep this file open in the editor.
12
-
2. Click the GitHub Copilot Chat click the :paperclip: and add "Open Editors" to the prompt.
13
-
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.
12
+
2. Click the GitHub Copilot Chat, click the :paperclip:, and add "Open Editors" to the prompt.
13
+
3. Copy and paste the following prompt in the GitHub Copilot Chat and select the "Agent" instead of "Ask" or "Edit" from the dropdown where you are inserting the prompt.
14
14
15
15
>[!NOTE]
16
-
> Do not change the model from GPT-4o this will be an optional activity at the end of the course.
17
-
> Keep in mind that the Copilot agent mode is conversational so it may ask you questions and you can ask it questions too.
16
+
> Do not change the model from GPT-4; this will be an optional activity at the end of the course.
17
+
> Keep in mind that the Copilot agent mode is conversational, so it may ask you questions, and you can ask it questions too.
18
18
> Wait a moment for the Copilot to respond and press the continue button to execute commands presented by Copilot agent mode.
19
19
> Keep files created and updated by Copilot agent mode until it is finished.
20
-
> Agent mode has the ability to evaluate your code base and execute commands and add/refactor/delete parts of your code base and automatically selfheal if it or you makes a mistake in the process.
20
+
> Agent mode has the ability to evaluate your codebase and execute commands and add/refactor/delete parts of your codebase and automatically self-heal if it or you make a mistake in the process.
21
21
22
22
### :keyboard: Activity: Setup the Python Django project/app
23
23
@@ -41,11 +41,11 @@ In this step, we will accomplish the following:
41
41
> **Prompt**
42
42
>
43
43
> ```prompt
44
-
> 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 initialize the octofit_db database.
44
+
> Based on the example monafit tracker app in the docs/mona-high-school-fitness-tracker.md file and use octofit as the name for Merington's high school's app. Let's initialize the octofit_db database.
45
45
>
46
46
> 1. Initialize the mongo octofit_db database.
47
47
> 2. Create a correct table structure for users, teams, activity, leaderboard, and workouts collections.
48
-
> 3. Make sure there is a unique id for primary key for the user collection.
48
+
> 3. Make sure there is a unique ID for the primary key for the user collection.
> 4. Execute the command for me to create the database.
51
51
> 5. List the collections in the octofit_db database.
@@ -54,8 +54,8 @@ In this step, we will accomplish the following:
54
54
> ```
55
55
56
56
> [!IMPORTANT]
57
-
> You may need to copy and paste the response in the terminal if there is no "Continue" button.
58
-
> Sometimes there is a scrolling issue and there may not be a "Continue" button.
57
+
> If there is no "Continue" button, just pull the left side of the GitHub Copilot Chat panel over to the left, and it should appear.
58
+
> If this doesn't work, you may need to copy and paste the response in the terminal if there is no "Continue" button.
59
59
60
60
### :keyboard: Activity: Update the Python Django project/app files
61
61
@@ -77,25 +77,41 @@ In this step, we will accomplish the following:
77
77
> 11. Install CORS middleware components.
78
78
>
79
79
> Don't proceed with the next activity until all of these steps are completed.
80
+
> ```
80
81
81
-
### :keyboard: Activity: populate the octofit_db database with test data from Django project/app files
82
+
### :keyboard: Activity: Populate the octofit_db database with test data from Django project/app files
82
83
83
84
> **Prompt**
84
85
>
85
86
> ```prompt
86
-
> 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 populate the octofit_db database with test data. Use same data from docs/mona-high-school-fitness-tracker.md file.
87
+
> Based on the example monafit tracker app in the docs/mona-high-school-fitness-tracker.md file and use octofit as the name for Merington's high school's app. Let's populate the octofit_db database with test data. Use the same data from docs/mona-high-school-fitness-tracker.md file.
87
88
>
88
89
> 1. Create a test data file in the octofit-tracker/backend/octofit_tracker directory.
89
90
> 2. Run makemigrations and migrate the database in a Python virtual environment.
90
91
> 3. Populate the octofit_db database with test data for users, teams, activities, leaderboard, and workouts collections based on test data in docs/mona-high-school-fitness-tracker.md populate_db.py.
91
92
> 4. Verify the test data is populated in the octofit_db database.
92
93
>
93
94
> Don't proceed with the next activity until all of these steps are completed.
94
-
>```
95
+
>```
95
96
96
97
> [!IMPORTANT]
97
-
> You may need to prompt agent mode and tell it that "the command is cut off".
98
+
> If there is no "Continue" button, just pull the left side of the GitHub Copilot Chat panel over to the left, and it should appear.
99
+
> If this doesn't work, you may need to copy and paste the response in the terminal if there is no "Continue" button.
100
+
101
+
1. Now that we have created the database structure, updated our Django project files, and populated the database, let's check our changes into our `build-octofit-app` branch.
102
+
103
+
1. With our new changes complete, please **commit** and **push** the changes to GitHub.
104
+
105
+
1. Wait a moment for Mona to check your work, provide feedback, and share the final lesson. Almost done!
106
+
107
+
<details>
108
+
<summary>Having trouble? 🤷</summary><br/>
109
+
110
+
If you don't get feedback, here are some things to check:
98
111
99
-
## Next step
112
+
- Make sure your commit changes were made for the following files to the branch `build-octofit-app` and pushed/synchronized to GitHub:
- If Mona found a mistake, simply make a correction and push your changes again. Mona will check your work as many times as needed.
100
116
101
-
Now that the Django project backend setup and the database is populated, let's continue on to the next step [Step 4: Setup Django REST Framework](./4-setup-django-rest-framework.md)
Copy file name to clipboardExpand all lines: .github/steps/4-setup-django-rest-framework.md
+19-4Lines changed: 19 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ In this step, we will accomplish the following:
29
29
> ```prompt
30
30
>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 setup codespace for the URL, restart the server, and test the API.
31
31
>
32
-
> 1. Activate the python virtual environment.
32
+
> 1. Activate the Python virtual environment.
33
33
> 2. Update #file:octofit-tracker/backend/octofit_tracker/views.py to replace the return for the REST API URL endpoints with the codespace URL https://[REPLACE-THIS-WITH-YOUR-CODESPACE-NAME]-8000.app.github.dev for Django and avoid certificate HTTPS issues.
34
34
> 3. Make sure the Django backend works on [REPLACE-THIS-WITH-YOUR-CODESPACE-NAME]-8000.app.github.dev and localhost:8000.
35
35
> 4. Test the API endpoints using curl command.
@@ -40,13 +40,28 @@ In this step, we will accomplish the following:
40
40
41
41
Now, let's actually try running the Django application! In the left sidebar, select the `Run and Debug` tab and then press the **Start Debugging** icon.
> Make sure to replace [REPLACE-THIS-WITH-YOUR-CODESPACE-NAME] with your codespace name.
47
47
> ex. redesigned-spork-g6pj46rr9hpp6x
48
48
> You can get the codespace name by running the following command in the terminal: `echo $CODESPACE_NAME`.
49
49
50
-
## Next step
50
+
1. Now that we have updated our Django product to include our codespace name for the URL endpoint,
51
+
let's check our changes in to our `build-octofit-app` branch.
51
52
52
-
Now that the Django REST framework is setup, let's continue on to the next step [Step 5: Setup the React Frontend Framework](./5-setup-frontend-react-framework.md)
53
+
1. With our new changes complete, please **commit** and **push** the changes to GitHub.
54
+
55
+
1. Wait a moment for Mona to check your work, provide feedback, and share the final lesson. Almost done!
56
+
57
+
<details>
58
+
<summary>Having trouble? 🤷</summary><br/>
59
+
60
+
If you don't get feedback, here are some things to check:
61
+
62
+
- Make sure your commit changes were made for the following files to the branch `build-octofit-app` and pushed/synchronized to GitHub:
0 commit comments