Skip to content

Commit 7a2d0ed

Browse files
committed
Update lab instructions to include SQL Server 2019 LocalDB installation steps and clarify environment requirements
1 parent 0f30bf2 commit 7a2d0ed

1 file changed

Lines changed: 102 additions & 32 deletions

File tree

Instructions/Labs/LAB_AK_13_implement-spec-driven-development.md

Lines changed: 102 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This exercise should take approximately **75** minutes to complete.
1616
1717
## Before you start
1818

19-
Your lab environment must include the following resources: Python 3.11 or later, Git 2.48 or later, .NET SDK 8.0 or later, Visual Studio Code with the C# Dev Kit and GitHub Copilot Chat extensions, the uv package manager, and access to a GitHub account with GitHub Copilot enabled.
19+
Your lab environment must include the following resources: Git 2.48 or later, .NET SDK 8.0 or later, Visual Studio Code with the C# Dev Kit and GitHub Copilot Chat extensions, SQL Server 2019 LocalDB, Python 3.11 or later, the uv package manager, and access to a GitHub account with GitHub Copilot enabled.
2020

2121
If you're using a local PC as a lab environment for this exercise:
2222

@@ -40,6 +40,53 @@ If you're using a hosted lab environment for this exercise:
4040
4141
If needed, install Git from [git-scm.com](https://git-scm.com/downloads) or your corporate application catalog.
4242
43+
1. Ensure that SQL Server 2019 LocalDB is installed:
44+
45+
Run the following command in a terminal window to check for LocalDB installation:
46+
47+
```powershell
48+
sqllocaldb info
49+
```
50+
51+
Expected output: List of LocalDB instances or an empty list if none exist. For example:
52+
53+
```output
54+
MSSQLLocalDB
55+
```
56+
57+
If the command fails or LocalDB is not installed, use the following steps to install SQL Server 2019 LocalDB:
58+
59+
1. To download the SQL Server 2019 Express edition installer file, open the following link in a browser: https://go.microsoft.com/fwlink/?LinkID=866658
60+
61+
1. After the download is complete, open the SQL Server 2019 installer file (for example, `SQL2019-SSEI-Expr.exe`).
62+
63+
1. On the SQL Server 2019 installation wizard, select **Download Media**.
64+
65+
1. Under **Specify SQL Server installer download**, select the **LocalDB** package, and then select the **Download** button.
66+
67+
1. When you see the **Download successful** message, select the **Open folder** button.
68+
69+
1. After the download is complete, run the LocalDB installer file (for example, `SqlLocalDB.msi`), and then follow the prompts to complete the installation.
70+
71+
1. To verify the installation, open PowerShell or Command Prompt, and then run the following command:
72+
73+
```powershell
74+
sqllocaldb info
75+
```
76+
77+
You should see a list of LocalDB instances (or an empty list if none exist yet). For example:
78+
79+
```output
80+
MSSQLLocalDB
81+
```
82+
83+
If you need to create the default instance of MSSQLLocalDB, run the following commands:
84+
85+
```powershell
86+
sqllocaldb create MSSQLLocalDB
87+
sqllocaldb start MSSQLLocalDB
88+
```
89+
4390
### Configure your environment
4491
4592
1. To ensure that the .NET SDK is configured to use the official NuGet.org repository as a source for downloading and restoring packages:
@@ -100,7 +147,7 @@ Use the following steps to complete this task:
100147
101148
You can use a Command Prompt, PowerShell, or Terminal window.
102149
103-
1. Ensure that Python 3.11 or later is installed:
150+
1. Ensure that Python 3.11 or later is installed.
104151
105152
GitHub Spec Kit's CLI tool is Python-based and requires Python 3.11+.
106153
@@ -112,27 +159,34 @@ Use the following steps to complete this task:
112159
113160
Required output: **Python 3.11.0** or later.
114161
115-
If you need to install Python, download from [python.org](https://www.python.org/downloads/) or use your organization's software distribution system.
162+
If you need to install Python, you can download the installer from the following URL: [python.org](https://www.python.org/downloads/).
116163
117-
1. Ensure that the uv package manager is installed:
164+
If you're in a corporate environment, you can also use your organization's software distribution system.
118165
119-
GitHub Spec Kit uses uv for CLI installation and management.
166+
1. To install uv using Windows PowerShell, run the following command:
120167
121-
- You can install uv by following the instructions at [docs.astral.sh/uv](https://docs.astral.sh/uv/)
168+
```powershell
169+
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
170+
```
122171
123-
- For Windows PowerShell:
172+
GitHub Spec Kit uses uv for CLI installation and management.
124173
125-
```powershell
126-
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
127-
```
174+
You can find more installation instructions at the following URL: [docs.astral.sh/uv](https://docs.astral.sh/uv/)
128175
129-
1. To ensure that uv is in your environment PATH, restart your terminal window, and then run the following command:
176+
1. To ensure that uv is in your environment PATH, restart your terminal window, and then run the following commands:
130177
131178
```powershell
179+
cd C:\
132180
uv --version
133181
```
134182
135-
1. To install GitHub Spec Kit's Specify CLI tool, run the following command:
183+
You should see output similar to the following sample:
184+
185+
```output
186+
uv 0.9.16 (a63e5b62e 2025-12-06)
187+
```
188+
189+
1. To install GitHub Spec Kit's Specify CLI tool, run the following PowerShell command:
136190
137191
```powershell
138192
uv tool install specify-cli --from git+https://github.com/github/spec-kit.git
@@ -152,9 +206,9 @@ Use the following steps to complete this task:
152206
153207
```output
154208
CLI Version 0.0.22
155-
Template Version 0.0.89
156-
Released 2025-11-15
157-
Python 3.13.9
209+
Template Version 0.0.90
210+
Released 2025-121-04
211+
Python 3.14.0
158212
Platform Windows
159213
Architecture AMD64
160214
OS Version 10.0.26200
@@ -192,6 +246,8 @@ Use the following steps to complete this task:
192246
193247
1. Open a browser window and navigate to GitHub.com.
194248
249+
You can log in to your GitHub account using the following URL: <a href="https://github.com/login" target="_blank">GitHub login</a>.
250+
195251
1. Sign in to your GitHub account, and then open your repositories tab.
196252
197253
You can open your repositories tab by clicking on your profile icon in the top-right corner, then selecting **Repositories**.
@@ -250,12 +306,16 @@ Use the following steps to complete this task:
250306
git clone https://github.com/YOUR-USERNAME/ContosoDashboard.git
251307
```
252308
309+
You might be prompted to authenticate using your GitHub credentials during the clone operation. You can authenticate using your browser.
310+
253311
1. To navigate into your ContosoDashboard directory, enter the following command:
254312
255313
```powershell
256314
cd ContosoDashboard
257315
```
258316
317+
> **IMPORTANT**: GitHub Spec Kit must be initialized in the root directory of your cloned repository.
318+
259319
1. To initialize GitHub Spec Kit within your existing project, enter the following command:
260320
261321
```powershell
@@ -264,11 +324,11 @@ Use the following steps to complete this task:
264324
265325
The command uses the following components:
266326
267-
- `--here` - Initializes GitHub Spec Kit in the current directory (existing project).
327+
- `--here` - Initializes GitHub Spec Kit in the current directory (your existing ContosoDashboard project).
268328
- `--ai copilot` - Configures the project for GitHub Copilot.
269329
- `--script ps` - Uses PowerShell scripts (use `--script sh` for bash/zsh on macOS/Linux).
270330
271-
> **Note**: If you're using macOS or Linux, replace `--script ps` with `--script sh`.
331+
If you're using macOS or Linux, replace `--script ps` with `--script sh`.
272332
273333
The CLI detects an existing Git repository ("Current directory isn't empty") and ask for confirmation to proceed.
274334
@@ -294,7 +354,7 @@ Use the following steps to complete this task:
294354
295355
1. Open the ContosoDashboard project in Visual Studio Code.
296356
297-
For example, enter the following command in the terminal window:
357+
For example, if the terminal window is still open, you can use the following command to open the project:
298358
299359
```powershell
300360
code .
@@ -334,20 +394,6 @@ Use the following steps to complete this task:
334394
335395
Using one of the newer language models might improve the quality of responses. This lab exercise was tested using the GPT-5 and Claude Sonnet 4.5 models. Results were comparable between the two models.
336396
337-
1. Ask GitHub Copilot to explain the current project and GitHub Spec Kit files.
338-
339-
For example, enter the following prompt in the Chat view:
340-
341-
```plaintext
342-
Review the current codebase. Explain the ContosoDashboard application features and the purpose of the GitHub Spec Kit files located under the .github\ and .specify\ directories.
343-
```
344-
345-
1. Take a couple minutes to review GitHub Copilot's response.
346-
347-
GitHub Copilot's response should summarize the application features and explain the purpose of the GitHub Spec Kit files.
348-
349-
You can also review the project's README.md file for a description of the current application features, mock authentication system, and security implementation.
350-
351397
1. In the Chat view, to verify that GitHub Spec Kit commands are available, type **/speckit**
352398
353399
You should see autocomplete suggestions that show the available commands:
@@ -371,6 +417,30 @@ Use the following steps to complete this task:
371417
- **Git clone errors**: Verify that you're signed in to GitHub, and that you have access to your imported repository.
372418
- **GitHub Spec Kit commands not appearing**: Ensure `.github/prompts/` exists in your workspace root. Try reloading Visual Studio Code.
373419
420+
1. Ask GitHub Copilot to explain the current project and GitHub Spec Kit files.
421+
422+
For example, enter the following prompt in the Chat view:
423+
424+
```plaintext
425+
Review the current codebase. Explain the ContosoDashboard application features and the purpose of the GitHub Spec Kit files located under the .github\ and .specify\ directories.
426+
```
427+
428+
1. Take a couple minutes to review GitHub Copilot's response.
429+
430+
GitHub Copilot's response should summarize the application features and explain the purpose of the GitHub Spec Kit files.
431+
432+
You can also review the project's README.md file for a description of the current application features, mock authentication system, and security implementation.
433+
434+
> **NOTE**: The ContosoDashboard application is build using .NET 8. If your development environment uses .NET version 9 or .NET version 10, the project file must be updated accordingly.
435+
436+
1. To ensure that the project is configured to use the .NET version installed in your development environment, update the ContosoDashboard.csproj file as needed.
437+
438+
You can use GitHub Copilot to update the project file. For example, enter the following prompt in the Chat view:
439+
440+
```plaintext
441+
I have the .NET 10 SDK installed. My project was written using .NET 8. Can you update the .csproj file for .NET 10 and ensure that the project builds correctly?
442+
```
443+
374444
1. In the EXPLORER view, right-click **ContosoDashboard** and then select **Open in Integrated Terminal**.
375445
376446
The terminal prompt should open in the ContosoDashboard project directory. For example:

0 commit comments

Comments
 (0)