generated from ita-social-projects/DevTemplate
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update 'Setup' section in README.md * Add 'TrustServerCertificate=true' to connection string template * Fixed seeding (#872) * Fixed seeding * Fixed inability to update streetcode 1 * Fixed additional text * Changed job description length limit (#1006) * Fix sonarcloud 3 (#970) * add swagger for stage and local * Changed datestring max length to 100 instead of 50 (#901) (#933) * fix sonar * Update fix sonar --------- Co-authored-by: Vitalii <[email protected]> Co-authored-by: Andrii Malynovskyi <[email protected]> Co-authored-by: Adeodonne <[email protected]> Co-authored-by: Bohdan Bozhyk <[email protected]> --------- Co-authored-by: Ivan Yadchyshyn <[email protected]> Co-authored-by: Ivan Yadchyshyn <[email protected]> Co-authored-by: Andrii Malynovskyi <[email protected]> Co-authored-by: Kateryna Yatsiuk <[email protected]> Co-authored-by: Valentyn Zamykhivskyi <[email protected]> Co-authored-by: Vitalii <[email protected]> Co-authored-by: Adeodonne <[email protected]> Co-authored-by: Bohdan Bozhyk <[email protected]>
- Loading branch information
1 parent
b401390
commit 214b2a4
Showing
8 changed files
with
2,864 additions
and
1,451 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,11 +74,22 @@ [email protected]:ita-social-projects/StreetCode.git | |
``` | ||
|
||
### Setup | ||
1. Change connection string | ||
(Go to **appsettings.json** and write your local database connection string) | ||
2. Create local database | ||
(Run project and make sure that database was created filled with data) | ||
|
||
**1. Change connection string** | ||
* Go to `appsettings.Local.json` in **StreetCode.WebApi** project and write your local database connection string in following format: | ||
|
||
``` | ||
Server={local_server_name};Database=StreetcodeDb;User Id={username};Password={password};MultipleActiveResultSets=true;TrustServerCertificate=true; | ||
``` | ||
**2. Add database seeding** | ||
- Go to `Program.cs` in **StreetCode.WebApi** project and add following code: | ||
```csharp | ||
await app.SeedDataAsync(); | ||
``` | ||
**3. Create and seed local database** | ||
* Run project and make sure that database was created and filled with data | ||
### How to run local | ||
Run the Streetcode project than open your browser and enter https://localhost:5001/swagger/index.html url. If you had this page already opened, just reload it. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.