Skip to content

Commit dc66d94

Browse files
committed
Add docker info
1 parent ba3cf4b commit dc66d94

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

docs/2024/index.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,29 +112,35 @@ Přepočet bodů na konkrétní známky odpovídá standardům vysokých škol.
112112

113113
1. Copy the project
114114

115-
2. Create a database in your local SQL server
115+
2. Install MSSQL Server and run it or run your MSSQL Docker Image
116+
- `docker pull mcr.microsoft.com/mssql/server:latest`
117+
- `docker run -e "ACCEPT_EULA=Y" -e "MSSQL_SA_PASSWORD=yourStrong(!)Password" -p 1433:1433 -d mcr.microsoft.com/mssql/server:2022-latest`
118+
- See how to use section in https://hub.docker.com/_/microsoft-mssql-server
119+
120+
3. Create a database in your local SQL server
121+
116122

117123
`Create Database "STAG-AUIUI-P8VT"`
118124

119-
3. Change your connection string in your `appsettings.json`
125+
4. Change your connection string in your `appsettings.json`
120126

121127
```js
122128
"ConnectionStrings": {
123-
"Database": "Data Source=localhost;Initial Catalog=STAG-AUIUI-P8VT;Integrated Security=false;User ID=sa;Password=SQLServer1;TrustServerCertificate=true"
129+
"Database": "Data Source=localhost;Initial Catalog=STAG-AUIUI-P8VT;Integrated Security=false;User ID=sa;Password=yourStrong(!)Password;TrustServerCertificate=true"
124130
},
125131
```
126132

127-
4. Build the application via `dotnet build`
133+
5. Build the application via `dotnet build`
128134

129-
5. Run the application via IDE or `dotnet run`
135+
6. Run the application via IDE or `dotnet run`
130136

131-
6. Maybe you will need to install dev certificates
137+
7. Maybe you will need to install dev certificates
132138
`dotnet dev-certs https `
133139

134-
7. This will run both backend and frontend as one application
140+
8. This will run both backend and frontend as one application
135141
- The ASP.NET server will serve as a host to both API and frontend
136142

137-
8. In `Fetch Data` page you can see some data being pull from API, this data is stored in database an has been seeded via a migration.
143+
9. In `Fetch Data` page you can see some data being pull from API, this data is stored in database an has been seeded via a migration.
138144

139145
### How to debug (in VS Community)
140146

0 commit comments

Comments
 (0)