You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Chapter-2-modules-separation/README.adoc
+12-16Lines changed: 12 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -138,25 +138,21 @@ to download it from the official Microsoft website.
138
138
139
139
=== Run locally
140
140
141
-
The Fitnet application requires Docker to run properly.
141
+
The Fitnet application uses .NET Aspire for local development.
142
142
143
-
There are only 3 steps you need to start the application:
143
+
To run the application locally, follow these steps:
144
144
145
-
1. Make sure that you are in `/Src` directory.
146
-
2. Run `docker-compose build` to build the image of the application.
147
-
3. Run `docker-compose up` to start the application. In the meantime it will also start Postgres inside container.
145
+
1. **Ensure Docker is running** on your machine.
146
+
2. **Navigate to the solution root directory** in your terminal.
147
+
3. **Run the AppHost project using the following command:**
148
148
149
-
The application runs on port `:8080`. Please navigate to http://localhost:8080 in your browser or http://localhost:8080/swagger/index.html to explore the API.
149
+
=== How to run Integration Tests?
150
+
To run the integration tests for the project located in the `Fitnet.IntegrationTests` project, you can use either the command:
150
151
151
-
That's it! You should now be able to run the application using either one of the above. :thumbsup:
152
+
`dotnet test`
153
+
154
+
or the `IDE test explorer`.
155
+
156
+
These tests are written using `xUnit` and require `Docker` to be running as they use `test containers` package to run PostgresSQL in a Docker container during testing.
152
157
153
-
=== How to run Integration Tests?
154
-
To run the integration tests go to a module integration tests (`SelectedModule.IntegrationTests`) and run using either the command:
155
-
[source,shell]
156
-
----
157
-
dotnet test
158
-
----
159
-
or the `IDE test Explorer`.
160
-
161
-
These tests are written using `xUnit` and require `Docker` to be running as they use `test containers` package to run PostgresSQL in a Docker container during testing.
162
158
Therefore, make sure to have `Docker` running before executing the integration tests.
Copy file name to clipboardExpand all lines: Chapter-2-modules-separation/Src/Contracts/Fitnet.Contracts.Infrastructure/Database/Migrations/20230601184153_MakeSignedAtColumnNullable.cs
Copy file name to clipboardExpand all lines: Chapter-2-modules-separation/Src/Contracts/Fitnet.Contracts.Infrastructure/Database/Migrations/20230601184328_AddCustomerIdColumn.cs
Copy file name to clipboardExpand all lines: Chapter-2-modules-separation/Src/Contracts/Fitnet.Contracts.Infrastructure/Database/Migrations/20230624171216_ContractsAddColumnsToSupportContractExpiration.cs
0 commit comments