From 2c77e04b20473871fdfc5937ba2bb361369232a4 Mon Sep 17 00:00:00 2001 From: asofio <34110390+asofio@users.noreply.github.com> Date: Wed, 12 Jan 2022 17:17:19 -0600 Subject: [PATCH] Added additional instructions Added additional instructions for running the EF migration. --- docs/local-dev.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/local-dev.md b/docs/local-dev.md index 6b202af..c9c748c 100644 --- a/docs/local-dev.md +++ b/docs/local-dev.md @@ -20,7 +20,15 @@ Once complete, VS Code will be running in your browser with the master branch cl 1. In a VS Code terminal window, run the following to trust local certs: `dotnet dev-certs https --trust` -2. Switch to the Run and Debug screen and debug the Bootstrapper. Upon completion, you should now have a "reddogdemo" database in the given SQL Server instance. +2. Start the Bootstrapper Dapr sidecar by doing the following: + 1. Open the Command Palette + 2. Select `Tasks: Run Task` + 3. Select `Dapr Bootstrapper` +3. Set an environment variable for the Bootstrapper's Dapr HTTP Port +``` +DAPR_HTTP_PORT=5880 +``` +5. Switch to the Run and Debug screen and debug the Bootstrapper. Upon completion, you should now have a "reddogdemo" database in the given SQL Server instance. >The Accounting Service within Reddog relies on SQL Server for persistent storage. As such, you will notice that the `.devcontainer` configuration for Codespaces (located withing the `.devcontainer` folder) points at a Docker compose file that includes a container image reference to SQL Server. While the image will be pulled into your Codespace for you, the database itself will still need to be provisioned. Included in the Reddog repo is an EF Core migration that can be run to provision the database. (If you would like to connect to the SQL Server instance and verify the migration, it is easiest to connect via `sqlcmd` in the VS Code terminal. [Installation instructions](https://docs.microsoft.com/en-us/sql/tools/sqlcmd-utility?view=sql-server-ver15))