diff options
| author | Syndamia <kamen.d.mladenov@protonmail.com> | 2021-05-06 20:40:11 +0300 |
|---|---|---|
| committer | Syndamia <kamen.d.mladenov@protonmail.com> | 2021-05-06 20:40:11 +0300 |
| commit | 92c4a9a5bcfa543740d2a3e2a9682205fed7ab0b (patch) | |
| tree | 7119be5257f8e7768c5996d54ca2bba21b5f1a8d /README.md | |
| parent | 11e86ef33e2d6c2b710e7cd9064b9a51f2f55e1e (diff) | |
| download | it-kariera-exam-template-92c4a9a5bcfa543740d2a3e2a9682205fed7ab0b.tar it-kariera-exam-template-92c4a9a5bcfa543740d2a3e2a9682205fed7ab0b.tar.gz it-kariera-exam-template-92c4a9a5bcfa543740d2a3e2a9682205fed7ab0b.zip | |
Updated formatting and wording in README
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -6,9 +6,9 @@ A template that could be useful for the final IT-kariera exam in 2021 There are some configs that I've made that you may want to change. This section explains them. -### PostgreSQL +### Database -The project is made to use [PostgreSQL](https://www.postgresql.org/). Since not everyone would want to use that, here are some steps for other databases. +The project is made to use [PostgreSQL](https://www.postgresql.org/) by default. Since not everyone would want to use that, here are some steps for other databases. Using MySQL: 1. Install the [MySql.Data.EntityFrameworkCore](https://www.nuget.org/packages/MySql.Data.EntityFrameworkCore/) NuGet package in **both** `ExamTemplate/Web` and `ExamTemplate/Data` @@ -16,14 +16,16 @@ Using MySQL: - You'll also need to add a using for the package in step 1 Using SQL Server (MSSQL): -1. 1. Install the [Microsoft.EntityFrameworkCore.SqlServer](https://www.nuget.org/packages/Microsoft.EntityFrameworkCore.SqlServer/) NuGet package in **both** `ExamTemplate/Web` and `ExamTemplate/Data` +1. Install the [Microsoft.EntityFrameworkCore.SqlServer](https://www.nuget.org/packages/Microsoft.EntityFrameworkCore.SqlServer/) NuGet package in **both** `ExamTemplate/Web` and `ExamTemplate/Data` 2. In the `ConfigureServices` method, inside `ExamTemplate/Web/Startup.cs`, **and** in the `CreateDbContext` method, inside `ExamTemplate/Data/TemplateContextFactory.cs` change `UseNpgsql` to `UseSqlServer` - You'll also need to add a using for the package in step 1 -### Disabled HTTPS +### HTTPS -Disabled, since certificates could cause issues on some systems. To revert: +HTTPS is disabled by default, since certificates could cause issues on some systems. + +To revert: 1. Add `app.UseHttpsRedirection();` in the `Configure` method, inside `ExamTemplate/Web/Startup.cs` 2. Add `https://localhost:5001;` in `"applicationUrl"` in the `Web` section, inside `ExamTemplate/Web/Properties/launchSettings.json`. - So, line 21 in the `launchSettings.json` file should look like: `"applicationUrl": "https://localhost:5001;http://localhost:5000",` |
