Skip to content

Commit 93d9c29

Browse files
committed
clean up
1 parent fe094d2 commit 93d9c29

File tree

1 file changed

+16
-24
lines changed

1 file changed

+16
-24
lines changed

Instructions/Labs/LAB_AK_06_vibe_coding_prototype_ecommerce_app.md

Lines changed: 16 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ For an AI agent to develop your envisioned app, it needs to understand your prod
5757

5858
- **Code first and iterate to define requirements**: This approach begins with minimal base specifications and jumps straight into coding. As development progresses, the app evolves organically through iterative cycles, gradually shaping the product’s features and user experience. This approach risks deviating from your original vision, for better or for worse, as you explore features implemented by the AI. An AI-led process can become unexpectedly time-consuming and may not yield the desired results, especially when the initial specifications are vague or open-ended.
5959

60-
- **Explore requirements before coding**: This approach emphasizes clarity from the start. You collaborate with the AI to draft a detailed Product Requirements Document (PRD) before writing any code. The PRD outlines the app’s purpose, target users, key features, and technical constraints. By establishing a clear vision upfront, you give the AI a solid foundation to generate code that aligns with your goals—reducing ambiguity and improving the chances of building the app you actually intended.
60+
- **Explore requirements before coding**: This approach emphasizes clarity from the start. You collaborate with the AI to draft a Product Requirements Document (PRD) before writing any code. The PRD outlines the app’s purpose, target users, key features, and technical constraints. By establishing a clear vision upfront, you give the AI a solid foundation to generate code that aligns with your goals—reducing ambiguity and improving the chances of building the app you actually intended.
6161

6262
In this task, you use GitHub Copilot to evaluate your base specifications and develop product requirements for your prototype app.
6363

@@ -69,9 +69,9 @@ Use the following steps to complete this section of the exercise:
6969

7070
1. In the **Add Folder to Workspace** dialog, navigate to an easy-to-find folder location, create a new folder named **VibeCoding-PrototypeApp**, and then select **Add**.
7171

72-
The folder location should be outside of any existing Git repository and should be easy to find. After completing this lab exercise, you may want to archive or delete the project.
72+
The folder location should be outside of any existing Git repository and should be easy to find. For example, if you're using a Windows PC, you can create a new folder named **VibeCoding-PrototypeApp** on your **Desktop** or in your **Documents** directory.
7373

74-
For example, if you're using a Windows PC, you can create a new folder named **VibeCoding-PrototypeApp** on your **Desktop** or in your **Documents** directory.
74+
After completing this lab exercise, you can either archive or delete the code project.
7575

7676
1. Open GitHub Copilot's Chat view.
7777

@@ -90,17 +90,14 @@ Use the following steps to complete this section of the exercise:
9090
1. In the Chat view, enter the following prompt:
9191

9292
```plaintext
93-
9493
I want to create a product requirements document (PRD) for an app that I'll develop using a vibe coding process. I want the PRD to include information about the app's purpose, target audience, features, and technical requirements. I've defined the following high-level parameters for my app: 1 - Use HTML, CSS, and JavaScript to create a client-side web app. 2 - Include the following web pages: Products, ProductDetails, ShoppingCart, and Checkout. 3 - Enable navigation between pages. I want the prototype app to implement basic features and satisfy a small number of high-level use cases. The prototype should implement the following: basic use case functionality, simple navigation, a sample dataset, and basic styling. I'll be adding the PRD to the chat context, then asking GitHub Copilot Agent to create the prototype app. What sections should I include in the PRD to enable GitHub Copilot Agent to create my envisioned prototype?
95-
9694
```
9795
9896
1. Review the response generated by GitHub Copilot.
9997
10098
For example, your response may be similar to the following sample:
10199
102100
```md
103-
104101
To enable GitHub Copilot Agent to create your envisioned prototype app, your Product Requirements Document (PRD) should include the following sections:
105102
106103
1. App Overview / Purpose
@@ -135,7 +132,6 @@ Use the following steps to complete this section of the exercise:
135132
- Clarify what is not required (e.g., user authentication, payment processing, backend integration).
136133
137134
Including these sections will give clear, actionable guidance for building your prototype app.
138-
139135
```
140136
141137
> **NOTE**: Don't worry if your response includes different section titles or if the sections appear in a different order. The responses that AI tools generate are often slightly different from one chat session to another. The selected AI model, your chat history, and the context of your chat session can also affect responses.
@@ -150,7 +146,7 @@ Use the following steps to complete this section of the exercise:
150146
151147
1. In the Chat view, enter the following prompt:
152148
153-
```markdown
149+
```plaintext
154150
The PRD sections that you suggested look good. Here's some information that should help you construct the PRD:
155151
156152
My prototype app targets online shoppers interested in ordering my products. The prototype should include the following:
@@ -169,7 +165,6 @@ Use the following steps to complete this section of the exercise:
169165
- The ShoppingCart page should display the list of products added to the cart. The list should include the product name, quantity, and total price for that product. The ShoppingCart page should also provide a way to update the quantity of each product that's in the cart, and an option to remove products from the cart.
170166
- The Checkout page should display a summary of the products being purchased, including product name, quantity, and price. The total price should be clearly displayed along with the option to "Process Order".
171167
- The left-side navigation menu should provide basic navigation between pages. The navigation bar should collapse down to display a one or two letter abbreviation when the display width drops below 300 pixels. The navigation bar should allow users to navigate between the app pages.
172-
173168
```
174169
175170
GitHub Copilot should generate a response that includes a suggested PRD based on the information you provided. The response should include the sections that you reviewed earlier, and it should include content for each section based on the information you provided.
@@ -180,7 +175,7 @@ Use the following steps to complete this section of the exercise:
180175
181176
1. In the Chat view, enter the following prompt:
182177
183-
```markdown
178+
```md
184179
Create a markdown file named VibeCodingPRD.md using your suggested sections and the inputs that I've provided.
185180
```
186181
@@ -194,7 +189,7 @@ Use the following steps to complete this section of the exercise:
194189
195190
1. In the Chat view, enter the following prompt:
196191
197-
```markdown
192+
```md
198193
Can you create low-fidelity wireframe diagrams (or text-based layouts) that represent the web pages and navigation bar (expanded and collapsed) for my prototype app? Use the PRD that I've provided as a reference.
199194
```
200195
@@ -203,7 +198,6 @@ Use the following steps to complete this section of the exercise:
203198
For example, the response may look similar to the following:
204199
205200
```md
206-
207201
Certainly! Here are text-based, low-fidelity wireframe layouts for each main page of your prototype app, based on your PRD:
208202
209203
---
@@ -279,14 +273,13 @@ Use the following steps to complete this section of the exercise:
279273
---
280274
281275
These wireframes provide a clear, simple structure for each page and the navigation menu, matching your requirements. If you want these added to your PRD or as a separate markdown file, let me know!
282-
283276
```
284277
285278
> **NOTE**: There are many other ways to create wireframe diagrams. For an AI-based approach that aligns with your vibe coding process, you can use Microsoft's M365 Copilot. Just provide M365 Copilot with a description of your app (the contents of your PRD) and ask the AI to create images of low-fidelity wireframe diagrams. For high-fidelity wireframe diagrams that you create manually, you can use a UI/UX design tool such as Figma.
286279
287280
1. In the Chat view, enter the following prompt:
288281
289-
```markdown
282+
```md
290283
Save the low-fidelity wireframe diagrams as text files, one file for each web page and one for navigation.
291284
```
292285
@@ -318,7 +311,6 @@ Use the following steps to complete this section of the exercise:
318311
The EXPLORER view in Visual Studio Code should look similar to the following:
319312
320313
```plaintext
321-
322314
UNTITLED (WORKSPACE)
323315
└── VibeCoding-PrototypeApp
324316
├── ShoppingApp
@@ -327,8 +319,7 @@ Use the following steps to complete this section of the exercise:
327319
├── wireframe-navigation.txt
328320
├── wireframe-product-details.txt
329321
├── wireframe-products.txt
330-
└── wireframe-shopping-cart.txt
331-
322+
```└── wireframe-shopping-cart.txt
332323
```
333324
334325
1. Add the PRD and wireframe diagrams to the chat context.
@@ -341,7 +332,7 @@ Use the following steps to complete this section of the exercise:
341332
342333
1. In the Chat view, enter the following prompt:
343334
344-
```markdown
335+
```md
345336
I want you to create a prototype shopping app using the information in my PRD and wireframe diagrams. Create the prototype app in the selected 'ShoppingApp' folder. The prototype should implement the following: basic use case functionality, simple navigation, a sample dataset, and basic styling. After creating the prototype app, add a '.github/copilot-instructions.md' file to the workspace. Add the contents of the PRD and wireframe files to the 'copilot-instructions.md' file.
346337
```
347338
@@ -368,12 +359,14 @@ Use the following steps to complete this section of the exercise:
368359
369360
The folder should contain the following files:
370361
362+
```plaintext
371363
ShoppingApp
372364
├── .github
373365
│ └── copilot-instructions.md
374366
├── app.js
375367
├── index.html
376368
├── styles.css
369+
```
377370
378371
1. Take a couple minutes to review each of the code files.
379372
@@ -428,13 +421,13 @@ Use the following steps to complete this section of the exercise:
428421
429422
1. In the Chat view, to adjust the breakpoint for the collapsed navigation bar, enter the following prompt:
430423
431-
```markdown
424+
```md
432425
#codebase Refactor the prototype app to use a higher breakpoint for the collapsed navigation bar. Change from 300 to 600px. Update the copilot-instructions.md file to explain the updated 600px requirement.
433426
```
434427
435428
If the agent implemented a navigation bar that changes orientation, switches from vertical to horizontal, when the screen narrows, use the following command to update the navigation bar's behavior:
436429
437-
```markdown
430+
```md
438431
#codebase Refactor the code to ensure that the navigation bar stays on the left-side of the app for all devices types and sizes. The navigation bar should be responsive and maintain its position, in either an expanded or collapsed mode.
439432
```
440433
@@ -446,7 +439,7 @@ Use the following steps to complete this section of the exercise:
446439
447440
1. In the Chat view, enter the following prompt:
448441
449-
```markdown
442+
```md
450443
#codebase Update the prototype app to display an emoji in the nav bar for each of the web pages. Ensure that the emoji is centered horizontally in the nav bar when the nav bar is collapsed. Update the copilot-instructions.md file to include this product requirement.
451444
```
452445
@@ -462,7 +455,7 @@ Use the following steps to complete this section of the exercise:
462455
463456
1. In the Chat view, to identify additional opportunities for improvements, enter the following prompt:
464457
465-
```markdown
458+
```md
466459
#codebase Review the product requirements and wireframe diagrams in the copilot-instructions.md file. Are there any features or requirements that are missing from the implementation? Are there obvious opportunities to improve the user experience?
467460
```
468461
@@ -474,15 +467,14 @@ Use the following steps to complete this section of the exercise:
474467
475468
Use GitHub Copilot's suggestions, and any testing notes that you created, to implement improvements. For example, you can ask GitHub Copilot Agent to help you implement the following changes:
476469
477-
```markdown
470+
```md
478471
#codebase Implement the following improvements to the prototype app:
479472
480473
- Replace alert() popups with in-app notification banners or toasts.
481474
- Add a confirmation/thank you message after processing an order.
482475
- Add a visual indicator (badge) for the number of items in the cart on the nav bar.
483476
484477
Ensure that the copilot-instructions.md file is updated to reflect any changes to the product features, technical requirements, user experience, or other measurable characteristics.
485-
486478
```
487479
488480
> **TIP**: You can copy information from GitHub Copilot's response to help construct your new prompt. You can also refer to sections of the previous response in your prompt.

0 commit comments

Comments
 (0)