Update dev container config and guidance (#886)
* Initial dev container changes * Update readme's * Clean up dev container * Cleanup * Use in-memory db * Indent * Update devcontainerreadme.md * Update appsettings.json * Update appsettings.json --------- Co-authored-by: bamurtaugh <brmurtau@microsoft.com>
This commit is contained in:
11
README.md
11
README.md
@@ -58,13 +58,12 @@ You can also run the samples in Docker (see below).
|
||||
|
||||
### Configuring the sample to use SQL Server
|
||||
|
||||
1. By default, the project uses a real database. If you want an in memory database, you can add in `appsettings.json`
|
||||
1. By default, the project uses a real database. If you want an in memory database, you can add in the `appsettings.json` file in the Web folder
|
||||
|
||||
```json
|
||||
{
|
||||
"UseOnlyInMemoryDatabase": true
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
1. Ensure your connection strings in `appsettings.json` point to a local SQL Server instance.
|
||||
@@ -98,6 +97,14 @@ You can also run the samples in Docker (see below).
|
||||
dotnet ef migrations add InitialIdentityModel --context appidentitydbcontext -p ../Infrastructure/Infrastructure.csproj -s Web.csproj -o Identity/Migrations
|
||||
```
|
||||
|
||||
## Running the sample in the dev container
|
||||
|
||||
This project includes a `.devcontainer` folder with a [dev container configuration](https://containers.dev/), which lets you use a container as a full-featured dev environment.
|
||||
|
||||
You can use the dev container to build and run the app without needing to install any of its tools locally! You can work in GitHub Codespaces or the VS Code Dev Containers extension.
|
||||
|
||||
Learn more about using the dev container in its [readme](/.devcontainer/devcontainerreadme.md).
|
||||
|
||||
## Running the sample using Docker
|
||||
|
||||
You can run the Web sample by running these commands from the root folder (where the .sln file is located):
|
||||
|
||||
Reference in New Issue
Block a user